diff --git a/packages/typescript-fetch-client/templates/modelGeneric.hbs b/packages/typescript-fetch-client/templates/modelGeneric.hbs index 03f80c06..eb31b09b 100644 --- a/packages/typescript-fetch-client/templates/modelGeneric.hbs +++ b/packages/typescript-fetch-client/templates/modelGeneric.hbs @@ -12,7 +12,7 @@ export interface {{className name}} {{#if parents}}extends {{#each parents}}{{{n {{/if}} {{#each properties}} {{>frag/propertyDocumentation memberOf=../name}} - {{#if readOnly}}readonly {{/if}}{{serializedName}}{{#unless required}}?{{/unless}}: {{{nativeType.serializedType}}}; + {{#if readOnly}}readonly {{/if}}'{{serializedName}}'{{#unless required}}?{{/unless}}: {{{nativeType.serializedType}}}; {{/each}} } {{>modelNestedModels}} diff --git a/packages/typescript-fetch-client2/templates/modelGeneric.hbs b/packages/typescript-fetch-client2/templates/modelGeneric.hbs index 03f80c06..eb31b09b 100644 --- a/packages/typescript-fetch-client2/templates/modelGeneric.hbs +++ b/packages/typescript-fetch-client2/templates/modelGeneric.hbs @@ -12,7 +12,7 @@ export interface {{className name}} {{#if parents}}extends {{#each parents}}{{{n {{/if}} {{#each properties}} {{>frag/propertyDocumentation memberOf=../name}} - {{#if readOnly}}readonly {{/if}}{{serializedName}}{{#unless required}}?{{/unless}}: {{{nativeType.serializedType}}}; + {{#if readOnly}}readonly {{/if}}'{{serializedName}}'{{#unless required}}?{{/unless}}: {{{nativeType.serializedType}}}; {{/each}} } {{>modelNestedModels}}