3 ms·
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 v
by mixedCase 6y 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.
- steve_adams_86 6y agoWow, that's really helpful. I'm working on a TS project at the moment and that might come in handy. Thanks!