Type alias Merge<A, B>

Merge<A, B>: {
    [K in keyof (A & B)]: K extends keyof B
        ? B[K]
        : K extends keyof A
            ? A[K]
            : never
}

Merge A property types with B property types while B's property types override A's property types

Type Parameters

  • A

  • B

Generated using TypeDoc