UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

11 lines (10 loc) 568 B
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js'; import { type IIsAbsolutePathSegmentsOptions } from '../is/is-absolute-path-segments.js'; export interface IJoinManyPathSegmentsOptions extends IIsAbsolutePathSegmentsOptions { readonly strict?: boolean; } /** * Joins many PathSegments * - pretty close to convertUncheckedPathSegmentsIntoPathSegments(['a'].concat(['b'])) */ export declare function joinManyPathSegments(paths: readonly IPathSegments[], { strict, ...options }: IJoinManyPathSegmentsOptions): IPathSegments;