From a8f6f1345e1631c6e19fa05b4cc2ec7d83ee4a88 Mon Sep 17 00:00:00 2001 From: Maddi Joyce Date: Tue, 12 Jun 2018 17:18:29 +1000 Subject: [PATCH] Bumping version number, fixing formNames selector. --- types/redux-form/index.d.ts | 2 +- types/redux-form/lib/selectors.d.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/redux-form/index.d.ts b/types/redux-form/index.d.ts index 1a3a4f1952..3488114a9b 100644 --- a/types/redux-form/index.d.ts +++ b/types/redux-form/index.d.ts @@ -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 // Daniel Lytkin diff --git a/types/redux-form/lib/selectors.d.ts b/types/redux-form/lib/selectors.d.ts index a4bce56b36..936319181d 100644 --- a/types/redux-form/lib/selectors.d.ts +++ b/types/redux-form/lib/selectors.d.ts @@ -3,6 +3,7 @@ import { FormErrors, GetFormState } from "../index"; export type DataSelector = (formName: string, getFormState?: GetFormState) => (state: State) => FormData; export type ErrorSelector = (formName: string, getFormState?: GetFormState) => (state: State) => FormErrors; export type BooleanSelector = (formName: string, getFormState?: GetFormState) => (state: State) => boolean; +export type NamesSelector = (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;