News for hackers. Stuff that matters.
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)!
Re:Show HN: A SQL database implemented purely in TypeScript ... by faichai on Monday September 28, 2020 @10:10AM (#24616759)
I think there is some experimental decorator syntax which will allow for extracting type info. Does runtypes interop with that? Or is planning to?
Re:Show HN: A SQL database implemented purely in TypeScript ... by phpnode on Monday September 28, 2020 @10:12AM (#24616776)
there's the reflect-metadata package but the type information it exposes is very limited, "object" instead of {a: "foo"} and so on.