ohctechv3/.svn/pristine/f3/f39b1fde25954ae4b3c065993a8d87f52b26a1ab.svn-base
2024-10-28 15:03:36 +05:30

13 lines
549 B
Plaintext

import * as React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { FormikContextType } from './types';
/**
* Connect any component to Formik context, and inject as a prop called `formik`;
* @param Comp React Component
*/
export declare function connect<OuterProps, Values = {}>(Comp: React.ComponentType<OuterProps & {
formik: FormikContextType<Values>;
}>): React.FC<OuterProps> & hoistNonReactStatics.NonReactStatics<React.ComponentClass<OuterProps & {
formik: FormikContextType<Values>;
}, any>, {}>;