Type alias Record<K, T>

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

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

Type Parameters

  • K
  • T