Directus / @directus/sdk / types / Merge
Type Alias: Merge<A, B, TypeA, TypeB> ​
Merge<
A
,B
,TypeA
,TypeB
>: { [K in keyof TypeA | keyof TypeB]: K extends keyof TypeA & keyof TypeB ? TypeA[K] | TypeB[K] : K extends keyof TypeB ? TypeB[K] : K extends keyof TypeA ? TypeA[K] : never }
Merge two object types with never guard
Type Parameters ​
• A
• B
• TypeA = NeverToUnknown
<A
>
• TypeB = NeverToUnknown
<B
>