Aktueller Stand

This commit is contained in:
2026-01-22 19:05:45 +01:00
parent 85dee61a4d
commit e280e4eadb
1967 changed files with 397327 additions and 74093 deletions

View File

@@ -58,6 +58,8 @@ declare namespace Router {
searchParams: { [k: string]: string }
) => any;
type Done = (err: Error | null, result: any) => void;
interface ConstraintStrategy<V extends HTTPVersion, T = string> {
name: string,
mustMatchWhenDerived?: boolean,
@@ -71,6 +73,8 @@ declare namespace Router {
deriveConstraint<Context>(req: Req<V>, ctx?: Context) : T,
}
type QuerystringParser = (s: string) => unknown;
interface Config<V extends HTTPVersion> {
ignoreTrailingSlash?: boolean;
@@ -82,6 +86,8 @@ declare namespace Router {
maxParamLength?: number;
querystringParser?: QuerystringParser;
defaultRoute?(
req: Req<V>,
res: Res<V>
@@ -156,7 +162,8 @@ declare namespace Router {
lookup<Context>(
req: Req<V>,
res: Res<V>,
ctx?: Context
ctx?: Context | Done,
done?: Done
): any;
find(