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

garrettmaring picture garrettmaring · Jul 3, 2018 · Viewed 133.2k times · Source

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?

Answer

Simon Warta picture Simon Warta · Aug 9, 2018

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