blob: e8a16efb5ffd4729b386dc995a12f3b6f21c7cff (
plain)
1
2
3
4
5
6
7
8
|
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;
}
|