Aktueller Stand
This commit is contained in:
9
backend/node_modules/find-my-way/index.d.ts
generated
vendored
9
backend/node_modules/find-my-way/index.d.ts
generated
vendored
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user