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
- language service — The part of TypeScript that editors talk to for live errors, hover information, auto-complete, renames and quick fixes.
- refactoring — Restructuring working code to make it clearer or easier to change without changing what it does.
Taught in
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript