UNPKG

hono

Version:

Web framework built on Web Standards

12 lines (10 loc) 382 B
import type { Router } from '../../router'; import type { MatcherMap } from './matcher'; import { match } from './matcher'; export declare class RegExpRouter<T> implements Router<T> { name: string; constructor(); add(method: string, path: string, handler: T): void; match: typeof match<Router<T>, T>; protected buildAllMatchers(): MatcherMap<T>; }