UNPKG

@lonu/stc

Version:

A tool for converting OpenApi/Swagger/Apifox into code.

18 lines 618 B
/** * Join all given a sequence of `paths`,then normalizes the resulting path. * * @example Usage * ```ts * import { join } from "@std/path/windows/join"; * import { assertEquals } from "@std/assert"; * * assertEquals(join("C:\\foo", "bar", "baz\\.."), "C:\\foo\\bar"); * assertEquals(join(new URL("file:///C:/foo"), "bar", "baz\\.."), "C:\\foo\\bar"); * ``` * * @param path The path to join. This can be string or file URL. * @param paths The paths to join. * @returns The joined path. */ export declare function join(path?: URL | string, ...paths: string[]): string; //# sourceMappingURL=join.d.ts.map