mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
10 lines
382 B
TypeScript
10 lines
382 B
TypeScript
|
import * as React from 'react';
|
||
|
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.ComponentType<OuterProps>;
|