@justcoding123/minitype
v0.0.4
Published
A validation library with a simple API thats easily treeshakeable.
Downloads
2
Readme
Minitype
A validation library with a simple API thats easily treeshakeable.
Usage example
import { object, string, number } from "@justcoding123/minitype";
const validator = object({
name: string(),
age: number(),
});
validator.parse(data); // Will throw an Error on validation errors
validator.safeParse(data); // Wont throw an Error on validation errors