Hacker News new | ask | show | jobs
by 100ideas 2309 days ago
You might find io-ts useful [1].

“io-ts introduces the concept of a runtime type (an instance of the Type class) which represents a runtime validator for a typescript (static) type. [2]”

See:

[1] https://gcanti.github.io/io-ts/

[2] https://lorefnon.tech/u2018/03/25/typescript-and-validations...