Files
2025-07-19 19:59:04 +08:00

15 lines
789 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import type { DocusaurusConfig } from '@docusaurus/types';
export type ApplyTrailingSlashParams = Pick<DocusaurusConfig, 'trailingSlash' | 'baseUrl'>;
export declare function addTrailingSlash(str: string): string;
export default function applyTrailingSlash(path: string, options: ApplyTrailingSlashParams): string;
/** Appends a leading slash to `str`, if one doesn't exist. */
export declare function addLeadingSlash(str: string): string;
/** Removes the trailing slash from `str`. */
export declare function removeTrailingSlash(str: string): string;
//# sourceMappingURL=applyTrailingSlash.d.ts.map