Skip to content

Commit

Permalink
js: Date does need to be hardcoded as Date | null
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman authored and svix-jplatte committed Feb 24, 2025
1 parent a20ab55 commit 3eb1c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3eb1c47

Please sign in to comment.