Skip to content

Module augmentation overrides interface rather than merge it #47443

@supproduction

Description

@supproduction

Our behavior when augmenting a module interface, this interface fully overriding, rather than merging with them.

💻 Code

import { Price } from '@spryker-vsf/api';

declare module '@spryker-vsf/api' {
  interface Price {
    relevantGrossAmount: number | null;
    relevantNetAmount: number;
  }
}

let price: Price;

🙁 Actual behavior

image

image

🙂 Expected behavior

Merged interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions