UNPKG

382 BTypeScriptView Raw
1import * as React from 'react';
2import { FormikContextType } from './types';
3/**
4 * Connect any component to Formik context, and inject as a prop called `formik`;
5 * @param Comp React Component
6 */
7export declare function connect<OuterProps, Values = {}>(Comp: React.ComponentType<OuterProps & {
8 formik: FormikContextType<Values>;
9}>): React.ComponentType<OuterProps>;