Skip to content

Commit

Permalink
fix: remove yup schema type and rely on assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Mar 11, 2023
1 parent 5759543 commit 5cbb913
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vee-validate/src/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
FieldState,
GenericFormValues,
TypedSchema,
YupSchema,
} from './types';
import {
getFromPath,
Expand All @@ -61,10 +60,10 @@ import { isCallable } from '../../shared';

export interface FormOptions<TValues extends GenericFormValues, TOutput extends TValues = TValues> {
validationSchema?: MaybeRef<
| YupSchema<TValues>
| TypedSchema<TValues, TOutput>
| Record<keyof TValues, GenericValidateFunction | string | GenericFormValues>
| undefined
| any
>;
initialValues?: MaybeRef<TValues>;
initialErrors?: Record<keyof TValues, string | undefined>;
Expand Down

0 comments on commit 5cbb913

Please sign in to comment.