From d9b5b35ba3a79ac778c5890531393442439df5dd Mon Sep 17 00:00:00 2001 From: Glen Date: Sat, 30 Jan 2016 21:44:02 +0200 Subject: [PATCH] Use Micromatch Pattern type --- browser-sync/browser-sync.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 50c00d9b9..6640090bc 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -5,11 +5,13 @@ /// /// +/// declare module "browser-sync" { import chokidar = require("chokidar"); import fs = require("fs"); import http = require("http"); + import mm = require("micromatch"); namespace browserSync { interface Options { @@ -312,11 +314,9 @@ declare module "browser-sync" { fn: (match: string) => string; } - type MatchTest = (string | RegExp | ((testString: string) => boolean)); - interface StreamOptions { once?: boolean; - match?: MatchTest | MatchTest[]; + match?: mm.Pattern | mm.Pattern[]; } interface BrowserSyncStatic extends BrowserSyncInstance {