UNPKG

hono

Version:

Web framework built on Web Standards

11 lines (10 loc) 337 B
import type { Result, Router } from '../../router'; export declare class SmartRouter<T> implements Router<T> { name: string; constructor(init: { routers: Router<T>[]; }); add(method: string, path: string, handler: T): void; match(method: string, path: string): Result<T>; get activeRouter(): Router<T>; }