UNPKG

570 BTypeScriptView Raw
1import { Minimatch } from "minimatch";
2/**
3 * Convert array of glob patterns to array of minimatch instances.
4 *
5 * Handle a few Windows-Unix path gotchas.
6 */
7export declare function createMinimatch(patterns: string[]): Minimatch[];
8export declare function matchesAny(patterns: readonly Minimatch[], path: string): boolean;
9export declare function nicePath(absPath: string): string;
10/**
11 * Normalize the given path.
12 *
13 * @param path The path that should be normalized.
14 * @returns The normalized path.
15 */
16export declare function normalizePath(path: string): string;