Fixed definitions to handle FieldArray errors.

This commit is contained in:
Hussein Shabbir
2017-06-30 14:32:30 +04:00
parent 00222e6b0a
commit 94cf810b99
+4 -4
View File
@@ -19,12 +19,12 @@ export interface DataShape {
}
export type FormErrors<FormData extends DataShape> = {
[P in keyof FormData]?: ReactElement<any> | string;
} & { _error?: string };
[P in keyof FormData]?: ReactElement<any> | string | { _error?: string };
};
export type FormWarnings<FormData extends DataShape> = {
[P in keyof FormData]?: ReactElement<any> | string;
} & { _warning?: string };
[P in keyof FormData]?: ReactElement<any> | string | { _warning?: string };
};
/**
* A component class or stateless function component.