Skip to content

Commit 70ff971

Browse files
cyyyue1emeb0t
authored andcommitted
add missing param definition for Form.validate
1 parent 2424dc8 commit 70ff971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ declare namespace ElementReact {
674674
class FormItem extends ElementReactLibs.Component<FormItemProps, {}> { }
675675
export class Form extends ElementReactLibs.Component<FormProps, {}> {
676676
static Item: typeof FormItem
677-
validate(cb?: () => void): void
677+
validate(cb?: (valid: boolean) => void): void
678678
validateField(prop: string, cb?: () => void): void
679679
resetFields(): void
680680
}

0 commit comments

Comments
 (0)