01
typescript
Leveraging Union Types and Union Autocomplete Helper in TypeScript
· 1 min·183 words
Combining string literals with a bare string kills autocomplete. Here's the pattern that preserves it — plus a reusable helper type to apply it anywhere.
- TypeScript
- Union Types
- Autocomplete