Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
29
node_modules/next/dist/shared/lib/router/utils/path-match.d.ts
generated
vendored
Normal file
29
node_modules/next/dist/shared/lib/router/utils/path-match.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
interface Options {
|
||||
/**
|
||||
* A transformer function that will be applied to the regexp generated
|
||||
* from the provided path and path-to-regexp.
|
||||
*/
|
||||
regexModifier?: (regex: string) => string;
|
||||
/**
|
||||
* When true the function will remove all unnamed parameters
|
||||
* from the matched parameters.
|
||||
*/
|
||||
removeUnnamedParams?: boolean;
|
||||
/**
|
||||
* When true the regexp won't allow an optional trailing delimiter
|
||||
* to match.
|
||||
*/
|
||||
strict?: boolean;
|
||||
/**
|
||||
* When true the matcher will be case-sensitive, defaults to false
|
||||
*/
|
||||
sensitive?: boolean;
|
||||
}
|
||||
export type PatchMatcher = (pathname: string, params?: Record<string, any>) => Record<string, any> | false;
|
||||
/**
|
||||
* Generates a path matcher function for a given path and options based on
|
||||
* path-to-regexp. By default the match will be case insensitive, non strict
|
||||
* and delimited by `/`.
|
||||
*/
|
||||
export declare function getPathMatch(path: string, options?: Options): PatchMatcher;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue