Closed Adrii77 closed 1 month ago
You can just adjust the modelIndex.handlebars
template.
I'm not sure if this would always be failproof or depends on the model.
Enums by default are generated as classes, but you can set in options "enumStyle": "alias"
to generate as an union type with string values. In that case it would really be type-only.
So, given the very short time I'm having for this project, I'd recommend editing the template and setting the enumStyle if you need this.
Enable typescript's
isolatedModules
option causes a re-exportation error frommodel.ts
generated file.Is it possible to add the typescript "type"'s keyword for import and export ?
I saw Angular CLI will enable
isolatedModules
option by default for new projects.I'm using Angular 18.1