Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 deletions

View File

@@ -0,0 +1,26 @@
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteDefinition } from '../route-definitions/route-definition';
type RouteMatchResult = {
params?: Record<string, string | string[]>;
};
export declare class RouteMatcher<D extends RouteDefinition = RouteDefinition> {
readonly definition: D;
private readonly dynamic?;
/**
* When set, this is an array of all the other matchers that are duplicates of
* this one. This is used by the managers to warn the users about possible
* duplicate matches on routes.
*/
duplicated?: Array<RouteMatcher>;
constructor(definition: D);
/**
* Identity returns the identity part of the matcher. This is used to compare
* a unique matcher to another. This is also used when sorting dynamic routes,
* so it must contain the pathname part.
*/
get identity(): string;
get isDynamic(): boolean;
match(pathname: string): RouteMatch<D> | null;
test(pathname: string): RouteMatchResult | null;
}
export {};