Skip to content

Glossary: TypeScript Basics

Record<K, V>

Also written: Record

A built-in utility type meaning an object with keys of type `K` and values of type `V`. With `Record<StateCode, number>`, the object needs exactly one entry per state.

Where the book teaches it

Related terms

index signatureutility type