UNPKG

792 BTypeScriptView Raw
1/// <reference types="hoist-non-react-statics" />
2import * as React from 'react';
3import { FormikProps, GenericFieldHTMLAttributes, FieldMetaProps, FieldInputProps } from './types';
4import { FieldConfig } from './Field';
5export interface FastFieldProps<V = any> {
6 field: FieldInputProps<V>;
7 meta: FieldMetaProps<V>;
8 form: FormikProps<V>;
9}
10export type FastFieldConfig<T> = FieldConfig & {
11 /** Override FastField's default shouldComponentUpdate */
12 shouldUpdate?: (nextProps: T & GenericFieldHTMLAttributes, props: {}) => boolean;
13};
14export type FastFieldAttributes<T> = GenericFieldHTMLAttributes & FastFieldConfig<T> & T;
15export declare const FastField: React.FC<any> & import("hoist-non-react-statics").NonReactStatics<React.ComponentClass<any, any>, {}>;