We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f915f commit 72f74ceCopy full SHA for 72f74ce
src/code-generator.ts
@@ -24,7 +24,7 @@ export function generateOptionalTypeDefinitionCode(typeInfo: TypeInfo): string {
24
const joinedPropDefinitions = fields
25
.map((field) => {
26
const comment = field.comment ? ` ${field.comment}` : '';
27
- return `${comment} ${field.name}: ${field.typeString};`;
+ return `${comment} ${field.name}?: ${field.typeString};`;
28
})
29
.join('\n');
30
return `
0 commit comments