From 580a88455b0ba56d0c64acabd400e49e9de996f4 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Mon, 6 Jan 2025 14:52:13 +0000 Subject: [PATCH] Fixed #6723 - Cannot read $form form field states with TypeScript --- packages/forms/src/form/Form.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/forms/src/form/Form.d.ts b/packages/forms/src/form/Form.d.ts index 32ee01014..9813b2444 100644 --- a/packages/forms/src/form/Form.d.ts +++ b/packages/forms/src/form/Form.d.ts @@ -240,11 +240,12 @@ export interface FormSlots { * Indicates whether the form is valid, returning `true` if all fields pass validation. */ valid: boolean; - + } & { /** - * Index signature for dynamically added form fields. + * Stores the state of each form field, with the field name as the key and its state as the value. */ - } & Record + [key: string]: FormFieldState; + } ) => VNode[]; }