UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

10 lines (9 loc) 414 B
import { CompositeUnitSimple, Composition, InferStructFromCompositeUnit, UnionToIntersection } from './types'; /** * Compose HOCs * * Will apply all matched HOCs * * All private props for unmatched HOCs will removed */ export declare function compose<T extends CompositeUnitSimple<any>[]>(...wrappers: T): T extends Array<infer X> ? Composition<UnionToIntersection<InferStructFromCompositeUnit<X>>> : never;