Files
klz-cables.com/.pnpm-store/v10/files/65/10c599445c4f280e107168f99193ae0becf996eae531476b51fa5a20ac4422da2e3e051d78173696e2e7efa002be7e74206646d1e659c22f2bd5e937590751
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

33 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