The // @ts-ignore comment enables the Typescript compiler to ignore the line below it.
// @ts-ignore
How can one ignore a whole block of code with Typescript?
You can't. This is an open issue in TypeScript: https://github.com/Microsoft/TypeScript/issues/19573