generated at
Record<K, T>
型制約として使うのはあり


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