UNPKG

@lonu/stc

Version:

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

20 lines 690 B
import type { GlobOptions } from "../_common/glob_to_reg_exp.js"; export type { GlobOptions }; /** * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. * * @example Usage * ```ts * import { normalizeGlob } from "@std/path/posix/normalize-glob"; * import { assertEquals } from "@std/assert"; * * const path = normalizeGlob("foo/bar/../*", { globstar: true }); * assertEquals(path, "foo/*"); * ``` * * @param glob The glob to normalize. * @param options The options to use. * @returns The normalized path. */ export declare function normalizeGlob(glob: string, options?: Pick<GlobOptions, "globstar">): string; //# sourceMappingURL=normalize_glob.d.ts.map