UNPKG

@lifaon/path

Version:

Useful tool to manage paths like the URL object

6 lines (5 loc) 336 B
import type { IUncheckedPathSegment } from '../../../../../types/segments/segment/unchecked-path-segment.type.js'; /** * Returns true if segment is valid (must not be empty nor contain some reserved characters) */ export declare function isValidPathSegment(segment: IUncheckedPathSegment, invalidPathSegmentRegExp?: RegExp): boolean;