@flex-development/pathe
Version:
Universal drop-in replacement for node:path
20 lines (19 loc) • 343 B
text/typescript
/**
* @file root
* @module pathe/lib/root
*/
/**
* Get the root of `input`.
*
* @category
* utils
*
* @this {void}
*
* @param {URL | string} input
* The {@linkcode URL}, URL string, or path to handle
* @return {string}
* Root of `input`
*/
declare function root(this: void, input: URL | string): string;
export default root;