TypeScript/tests/baselines/reference/decoratorOnClassMethod3.js

17 lines
339 B
TypeScript
Raw Normal View History

//// [decoratorOnClassMethod3.ts]
2015-03-17 22:06:06 +01:00
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
public @dec method() {}
}
//// [decoratorOnClassMethod3.js]
var C = (function () {
function C() {
}
return C;
})();
public;
method();
{ }