UNPKG

425 BTypeScriptView Raw
1/**
2 * Mixins an object into the classes prototype.
3 * @export
4 * @param {...Object[]} srcs
5 * @returns {ClassDecorator}
6 * @example
7 *
8 * const myMixin = {
9 * blorg: () => 'blorg!'
10 * }
11 *
12 * @Mixin(myMixin)
13 * class MyClass {}
14 *
15 * const myClass = new MyClass();
16 *
17 * myClass.blorg(); // => 'blorg!'
18 */
19export declare function Mixin(...srcs: Object[]): ClassDecorator;
20export { Mixin as mixin };
21export default Mixin;