Skip to content

Commit 018c12b

Browse files
committed
update '|null' to ' | null' in js
1 parent 1ecf188 commit 018c12b

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
@@ -41,7 +41,7 @@ class JavaScript extends LanguageMeta {
4141
type += "[]";
4242
}
4343
if (!attribute.required && attribute.default === null) {
44-
type += "|null";
44+
type += " | null";
4545
}
4646
return type;
4747
}

0 commit comments

Comments
 (0)