main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

19
node_modules/next/dist/lib/try-to-parse-path.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import type { Token } from 'next/dist/compiled/path-to-regexp';
interface ParseResult {
error?: any;
parsedPath: string;
regexStr?: string;
route: string;
tokens?: Token[];
}
/**
* Attempts to parse a given route with `path-to-regexp` and returns an object
* with the result. Whenever an error happens on parse, it will print an error
* attempting to find the error position and showing a link to the docs. When
* `handleUrl` is set to `true` it will also attempt to parse the route
* and use the resulting pathname to parse with `path-to-regexp`.
*/
export declare function tryToParsePath(route: string, options?: {
handleUrl?: boolean;
}): ParseResult;
export {};