3 * Adds a rule rules to the current manager.
4 * @param {string | Ignore} pattern
7 add(pattern: string | Ignore): Ignore
9 * Adds several rules to the current manager.
10 * @param {string[]} patterns
13 add(patterns: (string | Ignore)[]): Ignore
16 * Filters the given array of pathnames, and returns the filtered array.
17 * NOTICE that each path here should be a relative path to the root of your repository.
18 * @param paths the array of paths to be filtered.
19 * @returns The filtered array of paths
21 filter(paths: string[]): string[]
23 * Creates a filter function which could filter
24 * an array of paths with Array.prototype.filter.
26 createFilter(): (path: string) => boolean
29 * Returns Boolean whether pathname should be ignored.
30 * @param {string} pathname a path to check
33 ignores(pathname: string): boolean
37 * Creates new ignore manager.
39 declare function ignore(): Ignore