wilddragon-site/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.d.ts

9 lines
259 B
TypeScript
Raw Normal View History

2026-04-17 15:51:01 -04:00
/**
* Removes the trailing slash for a given route or page path. Preserves the
* root page. Examples:
* - `/foo/bar/` -> `/foo/bar`
* - `/foo/bar` -> `/foo/bar`
* - `/` -> `/`
*/
export declare function removeTrailingSlash(route: string): string;