@flex-development/pathe
Version:
Universal drop-in replacement for node:path
24 lines (23 loc) • 559 B
text/typescript
/**
* @file parse
* @module pathe/lib/parse
*/
import type { ParsedPath } from '@flex-development/pathe';
/**
* Create an object whose properties represent significant elements of `input`.
* Trailing directory separators are ignored.
*
* @see {@linkcode ParsedPath}
*
* @category
* core
*
* @this {void}
*
* @param {URL | string} input
* The {@linkcode URL}, URL string, or path to parse
* @return {ParsedPath}
* Significant elements of `path`
*/
declare function parse(this: void, input: URL | string): ParsedPath;
export default parse;