Skip to content

Glossary: TypeScript Basics

index signature

Also written: lookup table

A type like `{ [sku: string]: Product }` that says any string key maps to a value of that type. It types lookup tables such as the product catalog, whose keys aren't known in advance.

Where the book teaches it

Related terms

Record<K, V>noUncheckedIndexedAccess