Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 authored Jan 29, 2024
1 parent 9092561 commit 1ba0000
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const { Schema, object, string, number, email, ...yup } = require('yup');
// This must be done before you build any schema that uses yup-by-example
yup.addMethod(Schema, 'example', yupByExample);

import { object, string, number, date } from 'yup';

// Add .example() everywhere you want an example
const userSchema = object({
name: string().required().example(),
Expand Down

0 comments on commit 1ba0000

Please sign in to comment.