typescript: automatically create getters for all of a constructor's named parameters

前端 未结 0 646
谎友^
谎友^ 2020-12-25 14:29

To make constructor calls more readable, I generally prefer to use named parameters as follows:

class MyClass {
  const         


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