Skip to content

Commit

Permalink
📖 fix: change info.values type in WatchObserver (react-hook-form#11917)
Browse files Browse the repository at this point in the history
* fix: change info.values type in WatchObserver

* update API extractor
  • Loading branch information
peinguin authored May 22, 2024
1 parent 6deae49 commit bed340c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ export type WatchInternal<TFieldValues> = (fieldNames?: InternalFieldName | Inte
export type WatchObserver<TFieldValues extends FieldValues> = (value: DeepPartial<TFieldValues>, info: {
name?: FieldPath<TFieldValues>;
type?: EventType;
value?: unknown;
values?: unknown;
}) => void;

// Warnings were encountered during analysis:
Expand Down
2 changes: 1 addition & 1 deletion src/types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ export type WatchObserver<TFieldValues extends FieldValues> = (
info: {
name?: FieldPath<TFieldValues>;
type?: EventType;
value?: unknown;
values?: unknown;
},
) => void;

Expand Down

0 comments on commit bed340c

Please sign in to comment.