Files
SnowLuma/.pnpm-store/v11/files/43/602b57afbb4415132744bec35b9074815d8e3f4a089ad35996d5bd6185353a6585e26d7f4a63f2bba34c3de7383c27af9740231f80bcf6894ae02d82207cce
TanTan 2a69b23b47
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) Skipped
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

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