Is there a way to prevent type narrowing in Typescript

前端 未结 0 364
野性不改
野性不改 2021-01-06 02:10

Is there a way to prevent child class definitions overwriting the base class? Or prevent type narrowing? Either through compiler errors or linting warnings.

B

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