Skip to content

Commit

Permalink
Omit validationSchema in useFormup options
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-lb committed Jun 2, 2020
1 parent 53a385a commit 7757a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ValidateFormResult extends yup.ValidateOptions {
/**
* Options for useFormup.
*/
export interface UseFormupOptions extends FormikConfig<any> {
export interface UseFormupOptions extends Omit<FormikConfig<any>, 'validationSchema'> {
onError?: (error: FormupValidationError | undefined) => void;
onSubmit: (values: object) => void;
}
Expand Down

0 comments on commit 7757a32

Please sign in to comment.