1 | import { ComponentClass, ComponentType } from "react";
|
2 | import { InjectedFormProps } from "../index";
|
3 |
|
4 | export function formValues<
|
5 | Values,
|
6 | P = {}
|
7 | >(obj: Values): (component: ComponentType<P & { [K in keyof Values]: any }>) => ComponentClass<P & { [K in keyof Values]: any }>;
|
8 |
|
9 | export function formValues<
|
10 | FormData = {},
|
11 | K extends keyof FormData = keyof FormData,
|
12 | P = {}
|
13 | >(...names: K[]): (component: ComponentType<P & Pick<FormData, K>>) => ComponentClass<P & Pick<FormData, K>>;
|