We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2810a1b commit 9ae579eCopy full SHA for 9ae579e
1 file changed
lib/process-schema.ts
@@ -288,11 +288,14 @@ export function schemaToType(
288
return {
289
name,
290
hasQuestionToken,
291
- type: withNullUnion(
292
- options.booleanAsStringish
293
- ? Writers.unionType('"true"', '"false"')
294
- : 'boolean',
295
- schemaObject.nullable,
+ type: maybeWithUndefined(
+ withNullUnion(
+ options.booleanAsStringish
+ ? Writers.unionType('"true"', '"false"')
+ : 'boolean',
296
+ schemaObject.nullable,
297
+ ),
298
+ hasQuestionToken,
299
),
300
docs,
301
};
0 commit comments