Skip to content

Commit 995469e

Browse files
atzcltangjinzhou
authored andcommitted
fix(typings): update form typings (#662)
1 parent 8fbeed1 commit 995469e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/form/form.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,13 @@ export interface WrappedFormUtils {
205205
* Get the specified fields' error. If you don't specify a parameter, you will get all fields' error.
206206
* @type Function (Function([names: string[]))
207207
*/
208-
getFieldsError(names: string[]): object;
208+
getFieldsError(names?: string[]): object;
209209

210210
/**
211211
* Get the specified fields' values. If you don't specify a parameter, you will get all fields' values.
212212
* @type Funtion (Function([fieldNames: string[]))
213213
*/
214-
getFieldsValue(fieldNames: string[]): object;
214+
getFieldsValue(fieldNames?: string[]): object;
215215

216216
/**
217217
* Get the value of a field.

0 commit comments

Comments
 (0)