bpms_site/.svn/pristine/f3/f36fd887624b2e2f7f063d985d759c5de75eeb01.svn-base
2025-11-02 16:38:49 +03:30

9 lines
259 B
Plaintext

/**
* 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;