We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6bbf20 commit c3b0b46Copy full SHA for c3b0b46
1 file changed
src/lib/tsgen/factory.ts
@@ -219,7 +219,7 @@ export default function (userOptions: TSGenOptions) {
219
220
return [
221
field.uid + op_required(field.mandatory) + ':',
222
- fieldType || visit_field_type(field) + ';',
+ fieldType || visit_field_type(field), field.mandatory?'':'| null', ';'
223
].join(' ')
224
}
225
@@ -272,7 +272,7 @@ export default function (userOptions: TSGenOptions) {
272
273
274
function type_text() {
275
- return 'string'
+ return 'string'
276
277
278
function type_number() {
0 commit comments