Files
klz-cables.com/.pnpm-store/v10/files/75/bb667cdc18a216c8bd505109eac7640340822a05d810ab44ef74205588d78c34c6d494577edb69b10f8676495f68e1874bc44eaebb81d13f71da2ab0ebcbe6
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
1.1 KiB
Plaintext

/// <reference types="koa__router" />
import type { Middleware, ParameterizedContext, DefaultState } from 'koa';
import type * as Router from '@koa/router';
/**
* Type compatibility note:
*
* This package uses @types/koa@3.x, but @types/koa__router@12.x depends on
* @types/koa@2.x. This creates type conflicts when working with router middleware.
* At runtime, koa@3.x is used throughout, so all methods exist and work correctly.
*
* The type casts in instrumentation.ts are necessary to bridge this gap.
*
* TODO: Remove type casts when @types/koa__router@13+ with @types/koa@3.x support is available
*/
export type KoaContext = ParameterizedContext<DefaultState, Router.RouterParamContext>;
export type KoaMiddleware = Middleware<DefaultState, KoaContext> & {
router?: Router;
};
/**
* This symbol is used to mark a Koa layer as being already instrumented
* since its possible to use a given layer multiple times (ex: middlewares)
*/
export declare const kLayerPatched: unique symbol;
export type KoaPatchedMiddleware = KoaMiddleware & {
[kLayerPatched]?: boolean;
};
//# sourceMappingURL=internal-types.d.ts.map