typescripttslint

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


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?


Solution

  • You can't. This is an open issue in TypeScript.