autocomplete
An editor feature that suggests property and function names as you type, based on the types it knows.
In more detail
Shared types give autocomplete for API calls: typing api.getUser. lists exactly the fields the server returns.
Related terms
- TypeScript — JavaScript with added type annotations, checked by a compiler before the code runs.
- type inference — The compiler working out a type from the code itself, so you do not have to write it out by hand.
- language service — The part of TypeScript that editors talk to for live errors, hover information, auto-complete, renames and quick fixes.
- keyof — The TypeScript type operator that produces a union of an object type's property names, such as "id" | "table" | "rowCount".
- IDE — An integrated development environment: a code editor with built-in tools such as autocompletion, error highlighting and debugging.
Taught in
- Type-Safe RPC Architectures: tRPC & Procedures — Production Full-Stack Engineering
- Why Generics: Functions, Identities And Type Variables — Production TypeScript