News for hackers. Stuff that matters.
Re:Show HN: JSONSchema to TypeScript compiler by YousefED on Wednesday April 26, 2017 @01:40AM (#14200694)
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 - started this long ago but some great contributors are leading it since!

Re:Show HN: JSONSchema to TypeScript compiler by bcherny on Wednesday April 26, 2017 @02:23AM (#14200888)
Awesome 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/...

Re:Show HN: JSONSchema to TypeScript compiler by Outpox on Wednesday April 26, 2017 @06:19AM (#14201878)
Awesome I was going to ask for something like this. And with both tools I might be able to make something very useful at work.