@flavs/yup-yup
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    yup-yup

    Additional validation methods for the Yup validation npm module

    Version

    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")
     
    });

    Install

    npm i @flavs/yup-yup

    DownloadsWeekly Downloads

    2

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    24.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • flavioespinoza