Skip to content

Glossary: TypeScript Beyond the Basics

@ts-expect-error

Also written: // @ts-expect-error

A comment placed above a line you can't fix yet that tells `tsc` to expect an error there. `tsc` reports it when the line no longer needs it.

Where the book teaches it

Related terms

checkJsnoImplicitAny