From 0636236876c9b1c997fa62c61e2a44e1a059ae07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C3=B3ral?= Date: Thu, 4 Apr 2024 09:46:45 +0200 Subject: [PATCH] chore: change context type to interface (#1508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change context type to interface * fix: lint --------- Co-authored-by: Tomasz Góral --- .changeset/random-name-tg.md | 5 +++++ packages/api-client/src/types/context.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/random-name-tg.md diff --git a/.changeset/random-name-tg.md b/.changeset/random-name-tg.md new file mode 100644 index 000000000..68ad0de78 --- /dev/null +++ b/.changeset/random-name-tg.md @@ -0,0 +1,5 @@ +--- +"@vue-storefront/magento-api": patch +--- + +[CHANGED] `Context` from type to interface to allow declaration merging. \ No newline at end of file diff --git a/packages/api-client/src/types/context.ts b/packages/api-client/src/types/context.ts index 1b832596a..5d76e05f8 100644 --- a/packages/api-client/src/types/context.ts +++ b/packages/api-client/src/types/context.ts @@ -2,4 +2,5 @@ import { ApiClientMethods, IntegrationContext } from "@vue-storefront/middleware import { MagentoApiMethods } from "@vue-storefront/magento-types"; import { ClientInstance, Config } from "./setup"; -export type Context = IntegrationContext>; +// eslint-disable-next-line @typescript-eslint/no-empty-interface -- Allow extending this interface +export interface Context extends IntegrationContext> {}