17 lines
250 B
TypeScript
17 lines
250 B
TypeScript
// @noemithelpers: true
|
|
// @experimentaldecorators: true
|
|
// @emitdecoratormetadata: true
|
|
// @target: es5
|
|
|
|
declare var decorator: any;
|
|
|
|
class MyClass {
|
|
constructor(test: string, test2: number) {
|
|
|
|
}
|
|
|
|
@decorator
|
|
doSomething() {
|
|
|
|
}
|
|
}
|