Why is the third parameter of the method decorator in Typescript undefined?

前端 未结 0 1377
广开言路
广开言路 2020-11-21 11:20

https://www.typescriptlang.org/docs/handbook/intro.html why this is undefined?

class Person {
  @readonly
  get name() { return `阿斯蒂芬` }
}
function readonly(t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题