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

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

Type Parameters

  • K extends keyof any
  • T