openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

Add option to generate models as classes instead of types

Open omerd-cyera opened this issue 2 years ago • 0 comments

Hi, I love this tool! Is it possible to generate the models as classes and not types?

This is what I currently have: image

This is what I would like: image

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!

omerd-cyera avatar Sep 04 '22 15:09 omerd-cyera