seyfert
Version:
The most advanced framework for discord bots
9 lines (8 loc) • 412 B
TypeScript
/**
* Mixes a class with other classes.
* @param args The classes to mix.
* @returns The mixed class.
*/
export declare function Mixin<T, C extends TypeClass[]>(...args: C): C[number] & T;
export type TypeClass<InstanceType = object, StaticType = object> = (abstract new (...args: any[]) => InstanceType) & StaticType;
export declare const mix: (...ingredients: TypeClass[]) => (decoratedClass: any) => any;