UNPKG

next

Version:

The React Framework

9 lines (8 loc) 259 B
/** * 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;