UNPKG

hono

Version:

Web framework built on Web Standards

21 lines (20 loc) 699 B
/** * @module * Dev Helper for Hono. */ import type { Hono } from '../../hono'; import type { Env } from '../../types'; interface ShowRoutesOptions { verbose?: boolean; colorize?: boolean; } interface RouteData { path: string; method: string; name: string; isMiddleware: boolean; } export declare const inspectRoutes: <E extends Env>(hono: Hono<E, import("../../types").BlankSchema, "/">) => RouteData[]; export declare const showRoutes: <E extends Env>(hono: Hono<E, import("../../types").BlankSchema, "/">, opts?: ShowRoutesOptions) => void; export declare const getRouterName: <E extends Env>(app: Hono<E, import("../../types").BlankSchema, "/">) => string; export {};