Skip to content

Commit

Permalink
fix: export ModelessBinds type closes #4478
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Sep 23, 2023
1 parent e1a4b23 commit a1414f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-zebras-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vee-validate': patch
---

fix: export ModelessBinds type closes #4478
4 changes: 2 additions & 2 deletions packages/vee-validate/src/types/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ export interface PrivateFormContext<TValues extends GenericObject = GenericObjec
isFieldValid<TPath extends Path<TValues>>(path: TPath): boolean;
}

interface ComponentModellessBinds {
export interface ComponentModellessBinds {
onBlur: () => void;
}

type ComponentModelBinds<TValue = any, TModel extends string = 'modelValue'> = ComponentModellessBinds & {
export type ComponentModelBinds<TValue = any, TModel extends string = 'modelValue'> = ComponentModellessBinds & {
[TKey in `onUpdate:${TModel}`]: (value: TValue) => void;
};

Expand Down

0 comments on commit a1414f6

Please sign in to comment.