openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
Add option to generate models as classes instead of types
Hi, I love this tool! Is it possible to generate the models as classes and not types?
This is what I currently have:
This is what I would like:
This could be helpful when trying to distinguish between 2 models with the same structure. Typescript uses a structural typing system, meaning we cannot distinguish between the generated types.
Thanks!