Skip to content

Glossary: TypeScript Basics

@ts-expect-error / @ts-ignore

Also written: @ts-expect-error, @ts-ignore

Comments that hide the error on the next line. `@ts-expect-error` complains if there is no error to hide, while `@ts-ignore` stays silent.

Where the book teaches it

Related terms

anystrict