mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-10-04 00:47:23 +03:00
spell out boolean
This commit is contained in:
parent
c581f9651c
commit
ae387104ac
@ -88,7 +88,7 @@ impl TSType {
|
||||
| Type::Float32
|
||||
| Type::Float64 => "number",
|
||||
Type::String | Type::Timestamp => "string",
|
||||
Type::Boolean => "bool",
|
||||
Type::Boolean => "boolean",
|
||||
},
|
||||
nullable,
|
||||
}),
|
||||
@ -606,7 +606,7 @@ mod tests {
|
||||
fn interprets_boolean() {
|
||||
let type_ = from_schema(json!({"type": "boolean"}));
|
||||
|
||||
assert_eq!(type_.to_source(true).unwrap(), "bool".to_string())
|
||||
assert_eq!(type_.to_source(true).unwrap(), "boolean".to_string())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -49,8 +49,8 @@ declare module Elm {
|
||||
body: string | null;
|
||||
icon: string | null;
|
||||
lang: string | null;
|
||||
requireInteraction: bool | null;
|
||||
silent: bool | null;
|
||||
requireInteraction: boolean | null;
|
||||
silent: boolean | null;
|
||||
tag: string | null;
|
||||
};
|
||||
title: string;
|
||||
|
Loading…
Reference in New Issue
Block a user