Conditional super() statement in Typescript

前端 未结 0 1515
后悔当初
后悔当初 2020-12-15 07:34

I have a class which get instantiated by super(). In super() I want to send parameter based on some condition. But if I place if statement before super(), typescript gives c

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