4 ms·
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 o
by bcherny 10y ago
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/8 https://github.com/bcherny/json-schema-to-typescript/issues/...