1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/router.d.ts
2022-08-19 15:54:54 +05:30

10 lines
333 B
TypeScript

export declare const METHOD_NAME_ALL: "ALL";
export declare const METHOD_NAME_ALL_LOWERCASE: "all";
export interface Router<T> {
add(method: string, path: string, handler: T): void;
match(method: string, path: string): Result<T> | null;
}
export interface Result<T> {
handlers: T[];
params: Record<string, string>;
}