@justcoding123/minitype
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @justcoding123/minitype

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

60 kB

Total Files

76

Last publish

Collaborators

  • justcoding123