Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Feild): 修改feild.validate回调参数ts定义 #3683 #3723

Merged
merged 1 commit into from
Feb 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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