UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

9 lines (8 loc) 523 B
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js'; import { type IConvertUncheckedPathSegmentsIntoPathSegments } from './convert-unchecked-path-segments-into-path-segments.js'; export interface IConvertStringPathToPathSegmentsOptions extends IConvertUncheckedPathSegmentsIntoPathSegments { } /** * Converts a string path to some `IPathSegments`. */ export declare function convertStringPathToPathSegments(path: string, options: IConvertStringPathToPathSegmentsOptions): IPathSegments;