@lifaon/path
Version:
Useful tool to manage paths like the URL object
9 lines (8 loc) • 353 B
TypeScript
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js';
export interface IIsAbsolutePathSegmentsOptions {
readonly rootRegExp: RegExp;
}
/**
* Returns `true` if the path is absolute.
*/
export declare function isAbsolutePathSegments(segments: IPathSegments, { rootRegExp }: IIsAbsolutePathSegmentsOptions): boolean;