Y
Hacker News
new
|
ask
|
show
|
jobs
by
mixedCase
2208 days ago
Not sure about Nim, but you can do this in TypeScript. There's even a library called io-ts that allows you to create composable types of this form for runtime validation which then turns the result into proper types.
1 comments
steve_adams_86
2207 days ago
Wow, that's really helpful. I'm working on a TS project at the moment and that might come in handy. Thanks!
link