UNPKG

@iopa/router

Version:

Lightweight and fast router for IOPA applications

9 lines 348 B
import type { IRouterResult, IRouter } from '@iopa/types'; import { Node } from './node'; export declare class TrieRouter<T> implements IRouter<T> { node: Node<T>; constructor(); add(method: string, path: string, handler: T): void; match(method: string, path: string): IRouterResult<T> | null; } //# sourceMappingURL=router.d.ts.map