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 | */
|
19 | export declare function Mixin(...srcs: Object[]): ClassDecorator;
|
20 | export { Mixin as mixin };
|
21 | export default Mixin;
|