@lifaon/path
Version:
Useful tool to manage paths like the URL object
9 lines (8 loc) • 445 B
TypeScript
import type { IUncheckedPathSegments } from '../../../../types/segments/unchecked-path-segments.type.js';
export interface IConvertStringPathToUncheckedPathSegmentsOptions {
readonly rootRegExp: RegExp;
}
/**
* Converts a string path to an `IUncheckedPathSegments`.
*/
export declare function convertStringPathToUncheckedPathSegments(path: string, { rootRegExp }: IConvertStringPathToUncheckedPathSegmentsOptions): IUncheckedPathSegments;