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

8 lines
297 B
TypeScript

import type { Result, Router } from '../../router';
import { Node } from './node';
export declare class TrieRouter<T> implements Router<T> {
node: Node<T>;
constructor();
add(method: string, path: string, handler: T): void;
match(method: string, path: string): Result<T> | null;
}