0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tests/ts_decorators.ts

15 lines
248 B
TypeScript
Raw Normal View History

/* eslint-disable */
function Decorate() {
return function (constructor: any): any {
return class extends constructor {
protected someField: string = "asdf";
};
};
}
@Decorate()
class SomeClass {}
console.log(new SomeClass());