UNPKG

routup

Version:

Routup is a minimalistic http based routing framework.

12 lines (11 loc) 448 B
import type { Key } from 'path-to-regexp'; import type { Path, PathMatcherExecResult, PathMatcherOptions } from './type'; export declare class PathMatcher { protected path: Path; protected regexp: RegExp; protected regexpKeys: Key[]; protected regexpOptions: PathMatcherOptions; constructor(path: Path, options?: PathMatcherOptions); test(path: string): boolean; exec(path: string): PathMatcherExecResult | undefined; }