Type objects whose keys all map to the same value type.
Section: Utility Types
Use `Record<K, T>`
typescript
typescript
type FeatureFlag = "billing" | "search";
const flags: Record<FeatureFlag, boolean> = {
billing: true,
search: false,
};Explanation
`Record` is often cleaner than a custom index signature.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Utility Types