In some sense, it was a crazy weekend.
An early Saturday morning, I decided to do some experiments with TypeScript mapped types. And in the blink of an eye, I have a prototype of an extremely simple typesafe parsing/validation library for TypeScript/JavaScript. It appears to be that the next couple of days were turned in my personal hackathon.
So I ended up with a package similar to well-known jsonschema. Still, more flexible, customizable and native for TypeScript so that your input data is simultaneously type-checked.
You can check out the package and documentation by the link.
Top comments (0)