json-schema-to-typescript icon indicating copy to clipboard operation
json-schema-to-typescript copied to clipboard

Include an option to export types instead of interfaces, for better intellisense

Open ianengelbrecht opened this issue 10 months ago • 1 comments

Seems types give better hints than interfaces, see example in the attached image. So I'm currently generating the interfaces, then changing them to types with a script, all in a build step. Would be nice if there was an option in json2ts to generate types directly.

Image

ianengelbrecht avatar Feb 22 '25 11:02 ianengelbrecht