2016-06-13 21:57:00 +02:00
|
|
|
// @experimentaldecorators: true
|
|
|
|
// @emitdecoratormetadata: true
|
|
|
|
// @target: ES5
|
|
|
|
|
|
|
|
declare const MyClassDecorator: ClassDecorator;
|
|
|
|
declare const MyMethodDecorator: MethodDecorator;
|
|
|
|
|
|
|
|
@MyClassDecorator
|
|
|
|
class A {
|
|
|
|
constructor(...args) {}
|
|
|
|
@MyMethodDecorator
|
|
|
|
method(...args) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
@MyClassDecorator
|
|
|
|
class B {
|
|
|
|
constructor(...args: number[]) {}
|
|
|
|
@MyMethodDecorator
|
2016-07-13 20:43:28 +02:00
|
|
|
method(this: this, ...args: string[]) {}
|
2016-06-13 21:57:00 +02:00
|
|
|
}
|