UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

11 lines (10 loc) 618 B
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js'; import type { IGetProcessPathSegmentsOptions } from '../get/get-process-path-segments.js'; import type { IIsAbsolutePathSegmentsOptions } from '../is/is-absolute-path-segments.js'; export interface IResolvePathSegmentsOptions extends IGetProcessPathSegmentsOptions, IIsAbsolutePathSegmentsOptions { } /** * Converts a path to an absolute path * INFO: root must be an absolute path */ export declare function resolvePathSegments(segments: IPathSegments, root: IPathSegments, options: IResolvePathSegmentsOptions): IPathSegments;