Skip to content

Commit

Permalink
⌨️ fix: add info.value type to WatchObserver (#11872)
Browse files Browse the repository at this point in the history
  • Loading branch information
peinguin authored May 19, 2024
1 parent 48f8822 commit 3e374dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +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;
}) => void;

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

Expand Down

0 comments on commit 3e374dc

Please sign in to comment.