2 ms·
io-ts does this. Although it's the other way around: you write the type guard (API is similar to writing a type) and it gives you the type for free.
by mixedCase 6y ago
io-ts does this. Although it's the other way around: you write the type guard (API is similar to writing a type) and it gives you the type for free.