UNPKG

hono

Version:

Web framework built on Web Standards

12 lines (11 loc) 306 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>; }