Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
9 lines
509 B
Plaintext
9 lines
509 B
Plaintext
import { ParamIndexMap, Result, Router } from "../../router.js";
|
|
//#region src/router/reg-exp-router/matcher.d.ts
|
|
export type HandlerData<T> = [T, ParamIndexMap][];
|
|
export type StaticMap<T> = Record<string, Result<T>>;
|
|
export type Matcher<T> = [RegExp, HandlerData<T>[], StaticMap<T>];
|
|
export type MatcherMap<T> = Record<string, Matcher<T> | null>;
|
|
export declare const emptyParam: string[];
|
|
export declare function match<R extends Router<T>, T>(this: R, method: string, path: string): Result<T>;
|
|
//#endregion |