Merge pull request #17650 from husainshabbir/redux-form-update

[redux-form] Fixed definitions to handle FieldArray errors.
This commit is contained in:
Ryan Cavanaugh
2017-07-10 13:35:00 -07:00
committed by GitHub

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.