Skip to content

Commit

Permalink
fix: corrected slot prop types for field component closes #4223
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Apr 20, 2023
1 parent 41b5d39 commit b2c4967
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/vee-validate/src/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ interface ValidationTriggersProps {
validateOnModelUpdate: boolean;
}

type EventHandlerBinding<T> = T | T[];

interface FieldBindingObject<TValue = unknown> {
name: string;
onBlur: (e: Event) => unknown;
onInput: (e: Event) => unknown;
onChange: (e: Event) => unknown;
onBlur: EventHandlerBinding<(e: Event) => unknown>;
onInput: EventHandlerBinding<(e: Event) => unknown>;
onChange: EventHandlerBinding<(e: Event) => unknown>;
'onUpdate:modelValue'?: ((e: TValue) => unknown) | undefined;
value?: unknown;
checked?: boolean;
Expand Down

0 comments on commit b2c4967

Please sign in to comment.