From 5b5257c449ba27b6f8eeb99e0e6e5e2798216dcb Mon Sep 17 00:00:00 2001 From: Serhii Fesiura Date: Wed, 8 May 2024 16:39:16 +0300 Subject: [PATCH] fix: add info.value type to WatchObserver --- reports/api-extractor.md | 1 + src/types/form.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/reports/api-extractor.md b/reports/api-extractor.md index 5371dbc1df9..70068bb4126 100644 --- a/reports/api-extractor.md +++ b/reports/api-extractor.md @@ -867,6 +867,7 @@ export type WatchInternal = (fieldNames?: InternalFieldName | Inte export type WatchObserver = (value: DeepPartial, info: { name?: FieldPath; type?: EventType; + value?: unknown; }) => void; // Warnings were encountered during analysis: diff --git a/src/types/form.ts b/src/types/form.ts index 7e6aae4a790..d17cd6c5cc5 100644 --- a/src/types/form.ts +++ b/src/types/form.ts @@ -825,6 +825,7 @@ export type WatchObserver = ( info: { name?: FieldPath; type?: EventType; + value?: unknown; }, ) => void;