Skip to content

Commit dca4312

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useWatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function useWatch<TForm extends FormInstance>(
9494
): any;
9595

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

0 commit comments

Comments
 (0)