From 3eb1c472986c1c7680e3aa4acc0c5786a82caf88 Mon Sep 17 00:00:00 2001 From: Mendy Man Date: Wed, 19 Feb 2025 16:16:38 -0500 Subject: [PATCH] js: Date does need to be hardcoded as `Date | null` --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 57eb5ce..d74ae01 100644 --- a/src/types.rs +++ b/src/types.rs @@ -633,7 +633,7 @@ impl FieldType { "number".into() } Self::String | Self::Uri => "string".into(), - Self::DateTime => "Date | null".into(), + Self::DateTime => "Date".into(), Self::JsonObject => "any".into(), Self::List(field_type) | Self::Set(field_type) => { format!("{}[]", field_type.to_js_typename()).into()