devtypes - v2.0.0
    Preparing search index...

    Type Alias DeepMergeManyStrict<T>

    DeepMergeManyStrict: Simplify<
        T extends [infer H, ...(infer R)]
            ? DeepMergeStrict<H, DeepMergeManyStrict<R>>
            : {},
    >

    Strictly deep merge multiple object types sequentially.

    Type Parameters

    • T extends unknown[]

      Tuple of object types

    Applies strict deep merges from left to right over a tuple of object types.

    type A = { a: { x: { foo: true } } };
    type B = { a: { x: { bar: string } } };
    type C = { a: { x: { foo: number } } };
    type Merged = DeepMergeManyStrict< [ A, B, C ] >;
    // { a: { x: { foo: true; bar: string } } }