Skip to content

Commit

Permalink
add as const on type defs
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Nov 2, 2021
1 parent d3135fe commit c76df27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/render/client/renderClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function renderEnumsMaps(
return ` ${v.name}: '${v.name}'`
})
.join(',\n') +
'\n};\n',
`\n}${moduleType === 'type' ? ' as const' : ''}\n`,
)
.join('\n')
}
Expand Down

0 comments on commit c76df27

Please sign in to comment.