UNPKG

hono

Version:

Web framework built on Web Standards

10 lines (9 loc) 308 B
import type { Result, Router } from '../../router'; import { Node } from './node'; export declare class TrieRouter<T> implements Router<T> { name: string; node: Node<T>; constructor(); add(method: string, path: string, handler: T): void; match(method: string, path: string): Result<T>; }