fix(typings): update form typings (#662)

pull/683/head
atzcl 2019-04-04 15:15:57 +08:00 committed by tangjinzhou
parent 8fbeed1e44
commit 995469eb9b
1 changed files with 2 additions and 2 deletions

View File

@ -205,13 +205,13 @@ export interface WrappedFormUtils {
* Get the specified fields' error. If you don't specify a parameter, you will get all fields' error. * Get the specified fields' error. If you don't specify a parameter, you will get all fields' error.
* @type Function (Function([names: string[])) * @type Function (Function([names: string[]))
*/ */
getFieldsError(names: string[]): object; getFieldsError(names?: string[]): object;
/** /**
* Get the specified fields' values. If you don't specify a parameter, you will get all fields' values. * Get the specified fields' values. If you don't specify a parameter, you will get all fields' values.
* @type Funtion (Function([fieldNames: string[])) * @type Funtion (Function([fieldNames: string[]))
*/ */
getFieldsValue(fieldNames: string[]): object; getFieldsValue(fieldNames?: string[]): object;
/** /**
* Get the value of a field. * Get the value of a field.