Y
Hacker News
new
|
ask
|
show
|
jobs
by
oreille
1120 days ago
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
1 comments
jakear
1120 days ago
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...
link