mix-classes
Version:
Seamlessly combine class inheritance with composition, guaranteed to work with any class
8 lines (7 loc) • 343 B
TypeScript
import { Constructable } from './types';
/**
* Gets a specific mixin's `this`
* @param instance The this object to search on
* @param MixinClass The mixin you want to find
*/
export declare const getMixin: <TConstructable extends Constructable>(instance: any, MixinClass: TConstructable) => TConstructable["prototype"] | undefined;