diff --git a/types/redux-form/lib/actionTypes.d.ts b/types/redux-form/lib/actionTypes.d.ts index ac0256456c..7718ba74ab 100644 --- a/types/redux-form/lib/actionTypes.d.ts +++ b/types/redux-form/lib/actionTypes.d.ts @@ -21,6 +21,7 @@ export interface ActionTypes { INITIALIZE: string; REGISTER_FIELD: string; RESET: string; + RESET_SECTION: string; SET_SUBMIT_FAILED: string; SET_SUBMIT_SUCCEEDED: string; START_ASYNC_VALIDATION: string; diff --git a/types/redux-form/lib/actions.d.ts b/types/redux-form/lib/actions.d.ts index 80fbc3a234..adc6e9842b 100644 --- a/types/redux-form/lib/actions.d.ts +++ b/types/redux-form/lib/actions.d.ts @@ -26,11 +26,14 @@ export declare function focus(form: string, field: string): FormAction; export interface InitializeOptions { keepDirty: boolean; keepSubmitSucceeded: boolean; + updateUnregisteredFields: boolean; + keepValues: boolean; } export declare function initialize(form: string, data: any, keepDirty?: boolean | InitializeOptions, options?: InitializeOptions): FormAction; export declare function registerField(form: string, name: string, type: FieldType): FormAction; export declare function reset(form: string): FormAction; +export declare function resetSection(form: string, ...sections: string[]): FormAction; export declare function startAsyncValidation(form: string): FormAction; export declare function stopAsyncValidation(form: string, errors?: any): FormAction; export declare function setSubmitFailed(form: string, ...fields: string[]): FormAction; diff --git a/types/redux-form/lib/reduxForm.d.ts b/types/redux-form/lib/reduxForm.d.ts index 29b6ca24ae..128845f08f 100644 --- a/types/redux-form/lib/reduxForm.d.ts +++ b/types/redux-form/lib/reduxForm.d.ts @@ -133,6 +133,7 @@ export interface FormInstance extends Component

{ pristine: boolean; registeredFields: RegisteredFieldState[]; reset(): void; + resetSection(...sections: string[]): void; submit(): Promise; valid: boolean; values: Partial;