io-ts
Check runtime values against type descriptions in a TypeScript project.
gcanti · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Decode an object with a count field and compare valid and invalid values.
What we tested
2.2.22. Decode an object with a count field and compare valid and invalid values. Decoded the numeric value and rejected the text value.