From 2bca1f6fce7afdeb5aa2a5fc64c88b99ea105e13 Mon Sep 17 00:00:00 2001 From: WanAn0902 <38753567+WanAn0902@users.noreply.github.com> Date: Thu, 10 Feb 2022 11:12:01 +0800 Subject: [PATCH] fix(Field): fix field.validate function signature (#3723) --- types/field/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/field/index.d.ts b/types/field/index.d.ts index c224b5b338..16529cf084 100644 --- a/types/field/index.d.ts +++ b/types/field/index.d.ts @@ -1,6 +1,6 @@ /// -import { ValidateResults, FieldOption } from '@alifd/field'; +import { FieldOption } from '@alifd/field'; import innerField from '@alifd/field'; export * from '@alifd/field'; @@ -16,7 +16,7 @@ export default class Field extends innerField{ * 校验 * @param callback */ - validate(callback?: (errors: object[], values: ValidateResults) => void): void; + validate(callback?: (errors: object[], values: object) => void): void; /** * 校验 @@ -25,7 +25,7 @@ export default class Field extends innerField{ */ validate( names?: string[] | string, - callback?: (errors: object[], values: ValidateResults) => void + callback?: (errors: object[], values: object) => void ): void; /**