File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,25 +7,20 @@ interface TestResult {
77
88export interface Ignore {
99 /**
10- * Adds a rule rules to the current manager.
11- * @param {string | Ignore } pattern
12- * @returns IgnoreBase
13- */
14- add ( pattern : string | Ignore ) : this
15- /**
16- * Adds several rules to the current manager.
10+ * Adds one or several rules to the current manager.
1711 * @param {string[] } patterns
1812 * @returns IgnoreBase
1913 */
20- add ( patterns : ( string | Ignore ) [ ] ) : this
14+ add ( patterns : string | Ignore | readonly ( string | Ignore ) [ ] ) : this
2115
2216 /**
2317 * Filters the given array of pathnames, and returns the filtered array.
2418 * NOTICE that each path here should be a relative path to the root of your repository.
2519 * @param paths the array of paths to be filtered.
2620 * @returns The filtered array of paths
2721 */
28- filter ( pathnames : Pathname [ ] ) : Pathname [ ]
22+ filter ( pathnames : readonly Pathname [ ] ) : Pathname [ ]
23+
2924 /**
3025 * Creates a filter function which could filter
3126 * an array of paths with Array.prototype.filter.
You can’t perform that action at this time.
0 commit comments