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.