Skip to content

Commit 88b0256

Browse files
committed
Made readonly optoinal always.
1 parent 12d7ff8 commit 88b0256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/partials/exportInterface.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type {{{name}}} = {
2020
{{/if}}
2121
*/
2222
{{/ifdef}}
23-
{{>isReadOnly}}{{{name}}}{{>isRequired}}: {{>type parent=../name}};
23+
{{>isReadOnly}}{{{name}}}{{#if isReadOnly}}?{{else}}{{>isRequired}}{{/if}}: {{>type parent=../name}};
2424
{{/each}}
2525
};
2626
{{#if enums}}

0 commit comments

Comments
 (0)