From 763355edeb4d045919d67dfc320a709064766355 Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Tue, 11 Apr 2023 10:50:40 +0100 Subject: [PATCH] fix: indicate that required properties are not null --- partials/model.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/model.handlebars b/partials/model.handlebars index 969ce6a..9f233ac 100644 --- a/partials/model.handlebars +++ b/partials/model.handlebars @@ -18,6 +18,6 @@ export class {{@key}} { ]; {{#each properties}} - public {{@key}}{{#unless _required}}?{{/unless}}: {{typeConvert this}}; + public {{@key}}{{#if _required}}!{{else}}?{{/if}}: {{typeConvert this}}; {{/each}} }