UNPKG

@lesnoypudge/utils-react

Version:

lesnoypudge's utils-react

9 lines (8 loc) 539 B
import { T } from '@lesnoypudge/types-utils-base/namespace'; import { PropsWithChildren, ReactNode } from 'react'; /** * Creates a decorator with optional additional properties. */ export declare const createWithDecorator: <_ExtraProps extends T.UnknownRecord = T.EmptyObject>(Decorator: (props: PropsWithChildren & _ExtraProps) => ReactNode) => { withDecorator: <_Props extends T.UnknownRecord = T.EmptyObject>(Component: (props: _Props) => ReactNode) => (props: _ExtraProps & _Props) => import("react/jsx-runtime").JSX.Element; };