Bumping version number, fixing formNames selector.

This commit is contained in:
Maddi Joyce
2018-06-12 17:18:29 +10:00
parent 11b289bbc1
commit a8f6f1345e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for redux-form 7.2
// Type definitions for redux-form 7.3
// Project: https://github.com/erikras/redux-form
// Definitions by: Carson Full <https://github.com/carsonf>
// Daniel Lytkin <https://github.com/aikoven>
+2 -1
View File
@@ -3,6 +3,7 @@ import { FormErrors, GetFormState } from "../index";
export type DataSelector<FormData = {}, State = {}> = (formName: string, getFormState?: GetFormState) => (state: State) => FormData;
export type ErrorSelector<FormData = {}, State = {}> = (formName: string, getFormState?: GetFormState) => (state: State) => FormErrors<FormData>;
export type BooleanSelector<State = {}> = (formName: string, getFormState?: GetFormState) => (state: State) => boolean;
export type NamesSelector<State = {}> = (getFormState?: getFormValues) => (state: State) => string[];
export const getFormValues: DataSelector;
export const getFormInitialValues: DataSelector;
@@ -12,7 +13,7 @@ export const getFormAsyncErrors: ErrorSelector;
export const getFormSyncWarnings: ErrorSelector;
export const getFormSubmitErrors: ErrorSelector;
export const getFormError: ErrorSelector;
export function getFormNames(state: any): string[];
export const getFormNames: NamesSelector;
export const isDirty: BooleanSelector;
export const isPristine: BooleanSelector;
export const isValid: BooleanSelector;