UNPKG

355 BTypeScriptView Raw
1/**
2 * Removes the trailing slash of a path if there is one. Preserves the root path `/`.
3 */
4export declare function removePathTrailingSlash(path: string): string;
5/**
6 * Normalizes the trailing slash of a path according to the `trailingSlash` option
7 * in `next.config.js`.
8 */
9export declare const normalizePathTrailingSlash: (path: string) => string;