Skip to content

Commit

Permalink
add Lazy Type (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryomasao authored Jul 18, 2020
1 parent 15969cc commit 0b5601d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const parseErrorSchema = (
};

export const yupResolver = <TFieldValues extends Record<string, any>>(
schema: Yup.ObjectSchema,
schema: Yup.ObjectSchema | Yup.Lazy,
options: Yup.ValidateOptions = {
abortEarly: false,
},
Expand Down

0 comments on commit 0b5601d

Please sign in to comment.