3 ms·
Obligated mention of runtypes (https://github.com/pelotom/runtypes https://github.com/pelotom/runtypes) that bridges the gap between type-land and runtime-land.
by williamdclt 6y ago
Obligated mention of runtypes (https://github.com/pelotom/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
- faichai 6y agoI think there is some experimental decorator syntax which will allow for extracting type info. Does runtypes interop with that? Or is planning to?
- phpnode 6y agothere's the reflect-metadata package but the type information it exposes is very limited, "object" instead of {a: "foo"} and so on.
- h0h0h0h0111 6y agoNot quite the same, but reminds me a bit of yup (https://github.com/jquense/yup https://github.com/jquense/yup)!