Skip to content

Commit 0d46a41

Browse files
committed
chore: add undefined for options in js
1 parent 4cabce3 commit 0d46a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/type-generation/languages/javascript.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class JavaScript extends LanguageMeta {
3636
type += "[]";
3737
}
3838
if (!attribute.required) {
39-
type += "|null";
39+
type += "|null|undefined";
4040
}
4141
return type;
4242
}

0 commit comments

Comments
 (0)