spell out boolean

This commit is contained in:
Brian Hicks 2024-04-25 07:25:59 -05:00
parent c581f9651c
commit ae387104ac
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50
2 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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;