@lifaon/path
Version:
Useful tool to manage paths like the URL object
8 lines (7 loc) • 441 B
TypeScript
import type { IPathSegment } from '../../../../../types/segments/segment/path-segment.type.js';
import type { IStemAndExtTuple } from '../../../../../types/stem-and-ext-tuple.type.js';
/**
* Returns the stem (file name without extension) and extension of 'basename'
* INFO: 'basename' must not be a special segment (from root or relative)
*/
export declare function getStemAndExtEntryPathSegment(segment: IPathSegment): IStemAndExtTuple;