mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
[redux-form] Add additional params to ValidateCallback type (#42075)
This commit is contained in:
Vendored
+2
@@ -37,6 +37,8 @@ export interface ValidateCallback<FormData, P, ErrorType> {
|
||||
nextProps: P & InjectedFormProps<FormData, P, ErrorType>;
|
||||
props: P & InjectedFormProps<FormData, P, ErrorType>;
|
||||
initialRender: boolean;
|
||||
lastFieldValidatorKeys: string[];
|
||||
fieldValidatorKeys: string[];
|
||||
structure: any;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,16 @@ const testFormWithChangeFunctionDecorator = reduxForm<TestFormData, TestFormComp
|
||||
|
||||
type TestProps = {} & InjectedFormProps<TestFormData>;
|
||||
const Test = reduxForm<TestFormData>({
|
||||
form : "test"
|
||||
form : "test",
|
||||
shouldError: ({
|
||||
values,
|
||||
nextProps,
|
||||
props,
|
||||
initialRender,
|
||||
lastFieldValidatorKeys,
|
||||
fieldValidatorKeys,
|
||||
structure
|
||||
}) => true,
|
||||
})(
|
||||
class Test extends React.Component<TestProps> {
|
||||
handleSubmitForm = (values: Partial<TestFormData>, dispatch: Dispatch<any>, props: {}) => {};
|
||||
|
||||
Reference in New Issue
Block a user