Why can I assign void to a never-returning function

前端 未结 0 734

Using typescript 4.1.2 with strict: true, I can declare a function like this without any complaints from the compiler:



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