mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
changed patterns to be either array or string
This commit is contained in:
Vendored
+1
-1
@@ -11,7 +11,7 @@
|
||||
* @param {multimatch.MultimatchOptions} [options]
|
||||
* @returns {string[]}
|
||||
*/
|
||||
declare function multimatch(paths: string[], patterns: string[], options?: multimatch.MultimatchOptions): string[];
|
||||
declare function multimatch(paths: string[], patterns: string | string[], options?: multimatch.MultimatchOptions): string[];
|
||||
|
||||
declare namespace multimatch {
|
||||
|
||||
|
||||
@@ -4,5 +4,6 @@ const options: multimatch.MultimatchOptions = {
|
||||
debug: true
|
||||
};
|
||||
|
||||
multimatch(["unicorn", "cake", "rainbows"], "!cake");
|
||||
multimatch(["unicorn", "cake", "rainbows"], ["*", "!cake"]);
|
||||
multimatch(["unicorn", "cake", "rainbows"], ["*", "!cake"], options);
|
||||
|
||||
Reference in New Issue
Block a user