mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
15 lines
248 B
TypeScript
15 lines
248 B
TypeScript
|
/* eslint-disable */
|
||
|
|
||
|
function Decorate() {
|
||
|
return function (constructor: any): any {
|
||
|
return class extends constructor {
|
||
|
protected someField: string = "asdf";
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Decorate()
|
||
|
class SomeClass {}
|
||
|
|
||
|
console.log(new SomeClass());
|