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

前端 未结 3 410
醉话见心
醉话见心 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:33

    If you don't need typesafe, just bring block to a new separated file and change the extension to .js,.jsx

提交回复
热议问题