UNPKG

844 BTypeScriptView Raw
1/// <reference types="node" />
2import { Minimatch, MinimatchOptions } from 'minimatch';
3import { Path } from 'path-scurry';
4import { GlobWalkerOpts } from './walker.js';
5export interface IgnoreLike {
6 ignored?: (p: Path) => boolean;
7 childrenIgnored?: (p: Path) => boolean;
8 add?: (ignore: string) => void;
9}
10/**
11 * Class used to process ignored patterns
12 */
13export declare class Ignore implements IgnoreLike {
14 relative: Minimatch[];
15 relativeChildren: Minimatch[];
16 absolute: Minimatch[];
17 absoluteChildren: Minimatch[];
18 platform: NodeJS.Platform;
19 mmopts: MinimatchOptions;
20 constructor(ignored: string[], { nobrace, nocase, noext, noglobstar, platform, }: GlobWalkerOpts);
21 add(ign: string): void;
22 ignored(p: Path): boolean;
23 childrenIgnored(p: Path): boolean;
24}
25//# sourceMappingURL=ignore.d.ts.map
\No newline at end of file