Is there a way to configure TypeScript / Babel so that uninitialised class properties use `declare` implicitly and are not emitted?

前端 未结 0 1684
情书的邮戳
情书的邮戳 2021-02-04 01:40

Currently, this code

class SomeClass {
  private prop1 = \'default\';
  private prop2?: string
}

emits the following:

class SomeCl         


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