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

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

类型参数

  • K extends keyof any
  • T