abi.js
Version:
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
20 lines (19 loc) • 629 B
TypeScript
import type { GlobOptions } from "../_common/glob_to_reg_exp.js";
export type { GlobOptions };
/**
* Like join(), but doesn't collapse "**\/.." when `globstar` is true.
*
* @example Usage
* ```ts
* import { joinGlobs } from "@std/path/posix/join-globs";
* import { assertEquals } from "@std/assert";
*
* const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
* assertEquals(path, "foo/bar/**");
* ```
*
* @param globs The globs to join.
* @param options The options to use.
* @returns The joined path.
*/
export declare function joinGlobs(globs: string[], { extended, globstar }?: GlobOptions): string;