Skip to content

Commit

Permalink
chore: change context type to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Góral committed Mar 28, 2024
1 parent f58b16c commit 6a9eda5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/random-name-tg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vsf-enterprise/magento-api": patch
---

[CHANGED] `Context` from type to interface to allow declaration merging.
2 changes: 1 addition & 1 deletion packages/api-client/src/types/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { ApiClientMethods, IntegrationContext } from "@vue-storefront/middleware
import { MagentoApiMethods } from "@vue-storefront/magento-types";
import { ClientInstance, Config } from "./setup";

export type Context = IntegrationContext<ClientInstance, Config, ApiClientMethods<MagentoApiMethods>>;
export interface Context extends IntegrationContext<ClientInstance, Config, ApiClientMethods<MagentoApiMethods>> {};

0 comments on commit 6a9eda5

Please sign in to comment.