Skip to content

Record

type Record<K, T> = { [P in K]: T };

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1613

Construct a type with a set of properties K of type T

Type Parameter
K extends keyof any
T