3 ms·
Very cool. Imo one of the big benefits of Typescript is the possibility to better tool interoperability. In case you need to do the reverse, for example model-
by YousefED 9y ago
Very cool. Imo one of the big benefits of Typescript is the possibility to better tool interoperability.
In case you need to do the reverse, for example model-first in typescript and want to generate JSONSchema:
Typescript Code to JSONSchema: https://github.com/YousefED/typescript-json-schema https://github.com/YousefED/typescript-json-schema - started this long ago but some great contributors are leading it since!
- bcherny 9y agoAwesome work. Expressing concepts that TS's type system can't handle (eg. minimum) as comments is an approach that I didn't consider. So far I've been focused on the idea of generating decorators [0], but comments seem like a solid stopgap. Especially because they show up as tooltips in VSCode. [0] https://github.com/bcherny/json-schema-to-typescript/issues/8 https://github.com/bcherny/json-schema-to-typescript/issues/...
- Outpox 9y agoAwesome I was going to ask for something like this. And with both tools I might be able to make something very useful at work.