mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #17650 from husainshabbir/redux-form-update
[redux-form] Fixed definitions to handle FieldArray errors.
This commit is contained in:
8
types/redux-form/index.d.ts
vendored
8
types/redux-form/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user