Re:Show HN: A SQL database implemented purely in TypeScript ...
by h0h0h0h0111 on Monday September 28, 2020 @09:12AM
(#24616258)
Another potential benefit - runtime metaprogramming.
All types are erased when converted to JS, but I can imagine a lot of utility for runtime types in Typescript.
[ Parent
| on HN ]
Re:Show HN: A SQL database implemented purely in TypeScript ...
by williamdclt on Monday September 28, 2020 @09:31AM
(#24616415)
Obligated mention of runtypes (https://github.com/pelotom/runtypes) that bridges the gap between type-land and runtime-land. It's not seamless at all but if you have a serious need for this sort of thing, it's great
Re:Show HN: A SQL database implemented purely in TypeScript ...
by h0h0h0h0111 on Friday October 02, 2020 @09:31AM
(#24662376)
Not quite the same, but reminds me a bit of yup (https://github.com/jquense/yup)!