@lifaon/path
Version:
Useful tool to manage paths like the URL object
11 lines (10 loc) • 749 B
TypeScript
import type { IMutablePathSegments } from '../../../../types/segments/mutable-path-segments.type.js';
import type { IUncheckedPathSegment } from '../../../../types/segments/segment/unchecked-path-segment.type.js';
import { type IPushSegmentIntoMutablePathSegmentsOptions } from './push-segment-into-mutable-path-segments.js';
export interface IPushUncheckedSegmentIntoMutablePathSegmentsOptions extends IPushSegmentIntoMutablePathSegmentsOptions {
readonly invalidPathSegmentRegExp: RegExp;
}
/**
* @see pushSegmentIntoMutablePathSegments
*/
export declare function pushUncheckedSegmentIntoMutablePathSegments(segments: IMutablePathSegments, segment: IUncheckedPathSegment, options: IPushUncheckedSegmentIntoMutablePathSegmentsOptions): void;