Skip to content

Commit

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

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

0 comments on commit ac0383f

Please sign in to comment.