UNPKG

hono

Version:

Web framework built on Web Standards

8 lines (7 loc) 276 B
import type { Result, Router } from '../../router'; export declare class LinearRouter<T> implements Router<T> { name: string; routes: [string, string, T][]; add(method: string, path: string, handler: T): void; match(method: string, path: string): Result<T>; }