Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/redux-form/lib/reduxForm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from "../index";

export type FormSubmitHandler<FormData = {}, P = {}> =
(values: Partial<FormData>, dispatch: Dispatch<any>, props: P) => void | FormErrors<FormData> | Promise<any>;
(values: FormData, dispatch: Dispatch<any>, props: P) => void | FormErrors<FormData> | Promise<any>;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was rather confused when I looked at this because FormData is an actual DOM API constructor/instance and it makes no sense to have a Partial<FormData>. Naming it TFormData might make it less confusing, but that's not the point of the PR 🤷‍♀️


export interface SubmitHandler<FormData = {}, P = {}> {
(
Expand Down