UNPKG

mix-classes

Version:

Seamlessly combine class inheritance with composition, guaranteed to work with any class

6 lines (5 loc) 274 B
import { Constructable } from './types'; export declare type IGeneric<TConstructable extends Constructable = any> = { Class: TConstructable; }; export declare const Generic: <TConstructable extends Constructable>(Class: TConstructable) => IGeneric<TConstructable>;