How to use `@ts-ignore` for a block

前端 未结 3 417
醉话见心
醉话见心 2021-01-31 01:05

The // @ts-ignore comment enables the Typescript compiler to ignore the line below it.

How can one ignore a whole block of code with Typescript?

3条回答
  •  有刺的猬
    2021-01-31 01:30

    You can't. This is an open issue in TypeScript: https://github.com/Microsoft/TypeScript/issues/19573

提交回复
热议问题