Skip to content
public-library›Rules›TypeScript›Avoid silencing the type checker

Avoid silencing the type checker

Prove types to the compiler with checks instead of asserting them. Use a type assertion, a non-null assertion, or @ts-expect-error only as a last resort, and never use @ts-ignore.

In the full rule