From 31aa4d57dcf78c4f92c1e8cb8ecfd49bde225fb7 Mon Sep 17 00:00:00 2001 From: Stephen Lautier Date: Wed, 29 Mar 2017 19:12:45 +0200 Subject: [PATCH] changed patterns to be either array or string --- types/multimatch/index.d.ts | 2 +- types/multimatch/multimatch-tests.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/multimatch/index.d.ts b/types/multimatch/index.d.ts index 5a1c1daab9..7130cafbd0 100644 --- a/types/multimatch/index.d.ts +++ b/types/multimatch/index.d.ts @@ -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 { diff --git a/types/multimatch/multimatch-tests.ts b/types/multimatch/multimatch-tests.ts index e867848b28..b8c9cac658 100644 --- a/types/multimatch/multimatch-tests.ts +++ b/types/multimatch/multimatch-tests.ts @@ -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);