Type Alias PartialRecord<K, T>

PartialRecord: { [P in K]?: T }

Partial record type with all keys optional

Type Parameters

  • K extends keyof any
  • T
type T = PartialRecord<'a' | 'b', number>
// T = {a?: number, b?: number}