Files
klz-cables.com/.pnpm-store/v10/files/59/fa5a40c90a6ce2a003ba53078dac1355e6e66ba99ab8eace366872ab140ec8cd4f4f585503495ea685cf08584d7d26bb970085c94ebf92338f7010613e491a
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

36 lines
1.2 KiB
Plaintext

export type HonoRequest = {
path: string;
method: string;
};
export type Context = {
req: HonoRequest;
res: Response;
error: Error | undefined;
};
export type Next = () => Promise<void>;
export type Handler = (c: Context, next: Next) => Promise<Response> | Response;
export type MiddlewareHandler = (c: Context, next: Next) => Promise<Response | void>;
export type HandlerInterface = {
(...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
(path: string, ...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
};
export type OnHandlerInterface = {
(method: string | string[], path: string | string[], ...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
};
export type MiddlewareHandlerInterface = {
(...handlers: MiddlewareHandler[]): HonoInstance;
(path: string, ...handlers: MiddlewareHandler[]): HonoInstance;
};
export interface HonoInstance {
get: HandlerInterface;
post: HandlerInterface;
put: HandlerInterface;
delete: HandlerInterface;
options: HandlerInterface;
patch: HandlerInterface;
all: HandlerInterface;
on: OnHandlerInterface;
use: MiddlewareHandlerInterface;
}
export type Hono = new (...args: unknown[]) => HonoInstance;
//# sourceMappingURL=types.d.ts.map