Files
klz-cables.com/.pnpm-store/v10/files/2b/0906321959237504f0d3000ec0d88bf93e3f7d1a50dccd9aef703c48ebc3d25665aa520b9c4cda56b47c2016869a0c3bd6e65223ec71449af3cffa683b7fd5
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

34 lines
1.6 KiB
Plaintext

export type HandlerOriginal = ((request: FastifyRequest, reply: FastifyReply, done: HookHandlerDoneFunction) => Promise<void>) | ((request: FastifyRequest, reply: FastifyReply, done: HookHandlerDoneFunction) => void);
export type FastifyError = any;
export type HookHandlerDoneFunction = <TError extends Error = FastifyError>(err?: TError) => void;
export type FastifyErrorCodes = any;
export type FastifyPlugin = (instance: FastifyInstance, opts: any, done: HookHandlerDoneFunction) => unknown | Promise<unknown>;
export interface FastifyInstance {
version: string;
register: (plugin: any) => FastifyInstance;
after: (listener?: (err: Error) => void) => FastifyInstance;
addHook(hook: string, handler: HandlerOriginal): FastifyInstance;
addHook(hook: 'onError', handler: (request: FastifyRequest, reply: FastifyReply, error: Error) => void): FastifyInstance;
addHook(hook: 'onRequest', handler: (request: FastifyRequest, reply: FastifyReply) => void): FastifyInstance;
}
/**
* Minimal type for `setupFastifyErrorHandler` parameter.
* Uses structural typing without overloads to avoid exactOptionalPropertyTypes issues.
* https://github.com/getsentry/sentry-javascript/issues/18619
*/
export type FastifyMinimal = {
register: (plugin: (instance: any, opts: any, done: () => void) => void) => unknown;
};
export interface FastifyReply {
send: () => FastifyReply;
statusCode: number;
}
export interface FastifyRequest {
method?: string;
routeOptions?: {
url?: string;
};
routerPath?: string;
}
//# sourceMappingURL=types.d.ts.map