UNPKG

redux-form-normalize-on-blur

Version:

a Field component that supports a normalizeOnBlur property

89 lines (88 loc) 4.95 kB
/// <reference types="react" /> import createNormalizeOnBlurField from './createNormalizeOnBlurField'; declare const Field: { new <P extends import("redux-form").BaseFieldProps<{ input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }> & { normalizeOnBlur?: any; } = import("redux-form").BaseFieldProps<{ input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }> & { normalizeOnBlur?: any; }>(props: P | Readonly<P>): { _input: Element | null | undefined; BlurHandler: (arg1: import("react").ComponentType<import("redux-form").WrappedFieldProps & { input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }>) => ({ input: { onBlur, ...input }, ...props }: import("redux-form").WrappedFieldProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; render(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; context: unknown; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<P>; state: Readonly<{}>; refs: { [key: string]: import("react").ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void; }; new <P extends import("redux-form").BaseFieldProps<{ input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }> & { normalizeOnBlur?: any; } = import("redux-form").BaseFieldProps<{ input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }> & { normalizeOnBlur?: any; }>(props: P, context: any): { _input: Element | null | undefined; BlurHandler: (arg1: import("react").ComponentType<import("redux-form").WrappedFieldProps & { input: { onKeyDown?: import("react").KeyboardEventHandler<any> | undefined; }; }>) => ({ input: { onBlur, ...input }, ...props }: import("redux-form").WrappedFieldProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; render(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; context: unknown; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<P>; state: Readonly<{}>; refs: { [key: string]: import("react").ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: import("react").Context<any> | undefined; }; export { Field, createNormalizeOnBlurField };