fix: FormExpose ts type error

pull/8399/head
ayay459547 2025-10-30 23:14:07 +08:00
parent bbb7670df1
commit 27064dc35d
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ export const formProps = () => ({
export type FormProps = Partial<ExtractPropTypes<ReturnType<typeof formProps>>>; export type FormProps = Partial<ExtractPropTypes<ReturnType<typeof formProps>>>;
export type FormExpose = { export type FormExpose = {
resetFields: (name?: NamePath) => void; resetFields: (nameList?: NamePath[]) => void;
clearValidate: (name?: NamePath) => void; clearValidate: (nameList?: NamePath[]) => void;
validateFields: ( validateFields: (
nameList?: NamePath[] | string, nameList?: NamePath[] | string,
options?: ValidateOptions, options?: ValidateOptions,