Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oliverjam/ts-validator

Messing around validating with TypeScript
https://github.com/oliverjam/ts-validator

Last synced: about 6 hours ago
JSON representation

Messing around validating with TypeScript

Awesome Lists containing this project

README

        

# Typescript Validator

This is just me messing around trying to understand how [Superstruct](https://docs.superstructjs.org/) or [Zod](https://zod.dev/) work. Validating JS values at runtime isn't too difficult—getting TypeScript to infer the correct values while you're coding is another matter.