UNPKG

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