by gavinray · 6y ago · 0 comments
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.
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.