react-elegant-ui
Version:
Elegant UI components, made by BEM best practices for react
12 lines (11 loc) • 587 B
TypeScript
import { ComponentType } from 'react';
import { HOCOptions, ConfigurableHOC } from './types';
type Wrapper<T extends {}> = (Component: ComponentType<T>) => ComponentType<T>;
/**
* Constructor of HOC with options
*
* This HOC should use with `compose` or `composeU` or with alternative implementations,
* which consider a utility props of result wrapper and remove props while not match.
*/
export declare const withHOCConstructor: <Props extends {}, Origin extends {} = {}>(options: HOCOptions<Props>, Wrapper: Wrapper<Props & Origin>) => ConfigurableHOC<Props, Origin>;
export {};