Type alias PartialRecord<K, T>

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

Partial record type with all keys optional

Example

type T = PartialRecord<'a' | 'b', number>
// T = {a?: number, b?: number}

Type Parameters

  • K extends keyof any

  • T

Generated using TypeDoc