UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

11 lines (10 loc) 747 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'; import { type IResolvePathSegmentsOptions } from './resolve-path-segments.js'; export interface IResolvePathSegmentsWithOptionalRootOptions extends IGetProcessPathSegmentsOptions, IIsAbsolutePathSegmentsOptions, IResolvePathSegmentsOptions { } /** * Converts a path to an absolute path */ export declare function resolvePathSegmentsWithOptionalRoot(segments: IPathSegments, root: IPathSegments | undefined, options: IResolvePathSegmentsWithOptionalRootOptions): IPathSegments;