mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Bumping version number, fixing formNames selector.
This commit is contained in:
Vendored
+1
-1
@@ -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>
|
||||
|
||||
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user