@flavs/yup-yup
v1.1.1
Published
Additional validation methods for the Yup validation npm module
Downloads
13
Maintainers
Readme
yup-yup
Additional validation methods for the Yup validation npm module
Install
yarn add @flavs/yup-yup
Usage
import "@flavs/yup-yup";
import * as Yup from "yup";
const validationSchema = Yup.object().shape({
// default Yup validator
email: Yup.string()
.email()
.required("Required"),
// new phone validator
mobilePhone: Yup.string()
.phone('phone number is not valid')
.required("Required")
});