I want to use a following design.
// hello.ts
class C {
@readonly
method()
method() { }
}
function readonly(target, key, descriptor) {
descriptor.writable = false;
}
$ node built/local/tsc.js hello.ts --noEmit --target ES5
hello.ts(2,3): error TS1206: Decorators are not valid here.