Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
641 B
Plaintext
14 lines
641 B
Plaintext
/**
|
|
* Strip the basename from a pathname if exists.
|
|
*
|
|
* Vendored and modified from `react-router`
|
|
* https://github.com/remix-run/react-router/blob/462bb712156a3f739d6139a0f14810b76b002df6/packages/router/utils.ts#L1038
|
|
*/
|
|
export declare function stripBasenameFromPathname(pathname: string, basename: string): string;
|
|
/**
|
|
* Matches a pathname against a route manifest and returns the matching pattern.
|
|
* Optionally strips a basename prefix before matching.
|
|
*/
|
|
export declare function matchRouteManifest(pathname: string, manifest: string[], basename?: string): string | null;
|
|
//# sourceMappingURL=route-manifest.d.ts.map
|