TypeScript 7 · Utility types and narrowing

Type a dictionary

Describe an object with known key and value types.

type Scores = Record<string, number>;

Official TypeScript 7 documentation

More utility types and narrowing commands

All utility types and narrowing commands · TypeScript 7 cheatsheet

Was this page helpful?