Skip to content

Commit bc5d591

Browse files
authored
fix: Optimize the TypeScript types of useWatch
1 parent dca4312 commit bc5d591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/useWatch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ function useWatch<TForm extends FormInstance>(
9393
form?: TForm | WatchOptions<TForm>,
9494
): any;
9595

96-
function useWatch<ValueType = Store>(
97-
dependencies: NamePath<ValueType>,
96+
function useWatch<ValueType = Store, Values = any>(
97+
dependencies: NamePath<Values>,
9898
form?: FormInstance | WatchOptions<FormInstance>,
9999
): ValueType;
100100

0 commit comments

Comments
 (0)