UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

6 lines (5 loc) 290 B
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js'; export interface IIsRootPathSegmentsOptions { readonly rootRegExp: RegExp; } export declare function isRootPathSegments(segments: IPathSegments, { rootRegExp }: IIsRootPathSegmentsOptions): boolean;