UNPKG

@ui-schema/react

Version:

Schema-driven UI generator for React using JSON Schema. Build powerful form and interface generators with headless components and hooks.

9 lines (8 loc) 502 B
import type { ComponentType, ReactNode } from 'react'; import { StoreKeys, WithValue, ExtractValueOverwriteProps } from '@ui-schema/react/UIStore'; import { UIStoreActions } from '@ui-schema/react/UIStoreActions'; export declare function extractValue<A = UIStoreActions, P extends Partial<WithValue<A>> & { storeKeys: StoreKeys; } = Partial<WithValue<A>> & { storeKeys: StoreKeys; }>(Component: ComponentType<P>): (props: Omit<P, keyof WithValue<A>> & ExtractValueOverwriteProps) => ReactNode;