From 3aa900e926adb2234381302c344950a062a0c215 Mon Sep 17 00:00:00 2001 From: Uriel Van Date: Tue, 25 Aug 2020 17:24:45 +0800 Subject: [PATCH] fix: `getFieldsValue` shouldn't always return `any` --- src/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.ts b/src/interface.ts index 9a86cd6fe..8d04a2c7f 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -194,7 +194,7 @@ export interface FormInstance { getFieldsValue: ( nameList?: NamePath[] | true, filterFunc?: (meta: Meta) => boolean, - ) => Values | any; + ) => Values; getFieldError: (name: NamePath) => string[]; getFieldsError: (nameList?: NamePath[]) => FieldError[]; isFieldsTouched(nameList?: NamePath[], allFieldsTouched?: boolean): boolean;