abi.js
Version:
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
17 lines (16 loc) • 452 B
TypeScript
/**
* Resolves path segments into a `path`.
*
* @example Usage
* ```ts
* import { resolve } from "@std/path/windows/resolve";
* import { assertEquals } from "@std/assert";
*
* const resolved = resolve("C:\\foo\\bar", "..\\baz");
* assertEquals(resolved, "C:\\foo\\baz");
* ```
*
* @param pathSegments The path segments to process to path
* @returns The resolved path
*/
export declare function resolve(...pathSegments: string[]): string;