Skip to content

Commit

Permalink
fix(Field): fix field.validate function signature (#3723)
Browse files Browse the repository at this point in the history
  • Loading branch information
WanAn0902 authored and 潕量 committed Mar 25, 2022
1 parent 3a3e4ed commit 96f36ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/field/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="react" />

import { ValidateResults, FieldOption } from '@alifd/field';
import { FieldOption } from '@alifd/field';
import innerField from '@alifd/field';

export * from '@alifd/field';
Expand All @@ -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;

/**
* 校验
Expand All @@ -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;

/**
Expand Down

0 comments on commit 96f36ef

Please sign in to comment.