Re:Macro-ts: TypeScript compiler with typesafe syntactic mac...
by oreille on Tuesday May 30, 2023 @11:09AM
(#36125771)
Although I have no idea how they managed to do so, someone actually made the parse<SomeType>(someVariable), possible in native typescript: https://deepkit.io/library/type
[ Parent
| on HN ]
Re:Macro-ts: TypeScript compiler with typesafe syntactic mac...
by jakear on Tuesday May 30, 2023 @11:34AM
(#36126075)
Not native typescript, they hack into the compiler. Their minimal `deserialize` example is also 250kB (!!!!!!) minified. Not really an option. https://docs.deepkit.io/english/runtime-types.html#runtime-t...