@lifaon/path
Version:
Useful tool to manage paths like the URL object
9 lines (8 loc) • 507 B
TypeScript
import type { IPathSegments } from '../../../../types/segments/path-segments.type.js';
import { type IGetBasenameOfPathSegmentOptions } from '../../segment/functions/get/get-basename-of-path-segment.js';
export interface IGetBasenameOfPathSegmentsOptions extends IGetBasenameOfPathSegmentOptions {
}
/**
* Returns the basename of `segments`.
*/
export declare function getBasenameOfPathSegments(segments: IPathSegments, ext: string | undefined, options: IGetBasenameOfPathSegmentsOptions): string | null;