UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

6 lines (5 loc) 275 B
import type { IUncheckedPathSegment } from '../../../../../types/segments/segment/unchecked-path-segment.type.js'; /** * Returns true if 'segment' is a root segment. */ export declare function isRootPathSegment(segment: IUncheckedPathSegment, rootRegExp: RegExp): boolean;