Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
8
node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.d.ts
generated
vendored
Normal file
8
node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/**
|
||||
* 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue