Libraries
    Preparing search index...

    Type Alias MergedContracts<A, B>

    MergedContracts: {
        readonly [K in keyof A | keyof B]: K extends keyof A
            ? K extends keyof B ? A[K] & B[K] : A[K]
            : K extends keyof B ? B[K] : never
    }

    Computes the merged type of two ApiContract objects.

    • Groups that only exist in A are kept as-is.
    • Groups that only exist in B are kept as-is.
    • Groups whose key appears in both A and B have their endpoint maps intersected (A[K] & B[K]), making all endpoints from both sources visible on the merged group.

    Type Parameters