Hacker News new | ask | show | jobs
by gavinray 2206 days ago
Hey, huge fan here!

It's really incredible to take a master type-definition in TS/JSON Schema and generate language bindings in every language. Especially from a JS/TS Node script as part of a build pipeline.

Or to start new type definitions by using API output/JSON files.

1 comments

Thanks a lot! Glad you like it.

I do the same workflow, where I generate types during build. I often generate them directly from the datasource (e.g. directly from the API). Then I get compile-time errors if the API changes.