UNPKG

hono

Version:

Web framework built on Web Standards

12 lines (11 loc) 330 B
import type { Params } from '../../router'; export declare class Node<T> { constructor(method?: string, handler?: T, children?: Record<string, Node<T>>); insert(method: string, path: string, handler: T): Node<T>; search(method: string, path: string): [ [ T, Params ][] ]; }