autocomplete
An editor feature that suggests names, such as token or prop names, as you type.
In more detail
It relies on types: exporting tokens as a typed TypeScript constant lets the editor list every valid token name. It also shows the documentation comment for each suggestion, so developers learn the design system while typing.
Related terms
- TypeScript — JavaScript with added type annotations, checked by a compiler before the code runs.
- as const — The TypeScript suffix as const, which tells the compiler to treat an object's values as fixed literal values rather than general types.
Taught in
- Token Transformation: Style Dictionary & Multi-Platform Outputs — Design Systems & Component Engineering