Type alias JoinKeys<T, U>

JoinKeys<T, U>: keyof T | keyof U

Utility for Merging keys of two objects into a union type.

// example
type T = JoinKeys<{foo: any, bar: any}, {fizz: any, buzz: any}>
// T = 'foo' | 'bar' | 'fizz' | 'buzz'

Type Parameters

  • T

    object type

  • U

    object type

Generated using TypeDoc