devtypes - v1.1.0
    Preparing search index...

    Type Alias Merge<Left, Right>

    Merge: Simplify<Pick<Left, Exclude<keyof Left, keyof Right>> & Right>

    Merge two object types shallowly.

    Type Parameters

    • Left

      Base object type

    • Right

      Overriding object type

    Properties from the right-hand type override properties from the left-hand type on key conflicts.

    type A = { a: number; b: string };
    type B = { b: number; c: boolean };
    type Merged = Merge< A, B >; // { a: number; b: number; c: boolean }