quick fix

An editor action that fixes a reported problem for you, such as adding a missing import.

In more detail

Editors show them as a light bulb or a menu next to the error. The TypeScript language service offers quick fixes for many errors, including adding missing imports, declaring a missing property and adding type annotations inferred from usage.

Related terms

Taught in

References