UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

9 lines (8 loc) 418 B
import type { IMutablePathSegments } from '../../../../types/segments/mutable-path-segments.type.js'; export interface IForcePathSegmentsAsRelativeOptions { readonly rootRegExp: RegExp; } /** * Converts an absolute path to a relative path: replace the root by `.`. */ export declare function forcePathSegmentsAsRelative(segments: IMutablePathSegments, { rootRegExp }: IForcePathSegmentsAsRelativeOptions): void;