@thx/tschemas

Useful yup schema shortcuts

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
110Jul 28, 2021Sep 18, 2017Minified + gzip package size for @thx/tschemas in KB

Readme


sidebar_label: TSchemas title: TSchemas


Useful yup schema shortcuts

Install

yarn add @thx/tschemas

Usage

import {shape} from 'yup';
import {localDate} from '@thx/tschemas';

const schema = shape({
  myDate: localDate().required(),
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.