Record

A built-in TypeScript type, Record<K, V>, for an object whose keys are of type K and values of type V.

In more detail

Record<string, unknown> means any object with string keys whose values are not yet known, a useful first step when checking parsed data. Record<"home" | "checkout", RouteConfig> requires exactly those keys.

Related terms

Taught in

References