mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #19259 from JozefBiros/redux-from-submission-error-fix
Added SubmissionError into export for immutabable
This commit is contained in:
commit
a8a2ce2d4e
1
types/redux-form/immutable/index.d.ts
vendored
1
types/redux-form/immutable/index.d.ts
vendored
@ -20,4 +20,5 @@ export {
|
||||
isPristine,
|
||||
isSubmitting,
|
||||
isValid,
|
||||
SubmissionError
|
||||
} from "redux-form";
|
||||
|
||||
4
types/redux-form/lib/SubmissionError.d.ts
vendored
4
types/redux-form/lib/SubmissionError.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
import { FormErrors } from "redux-form";
|
||||
|
||||
export interface SubmissionErrorConstructor<T = void> {
|
||||
export interface SubmissionErrorConstructor<T> {
|
||||
new (errors?: FormErrors<T>): Error;
|
||||
}
|
||||
|
||||
declare const SubmissionError: SubmissionErrorConstructor;
|
||||
declare const SubmissionError: SubmissionErrorConstructor<any>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user