Use Micromatch Pattern type

This commit is contained in:
Glen
2016-01-30 21:44:02 +02:00
parent 3467c722bd
commit d9b5b35ba3
+3 -3
View File
@@ -5,11 +5,13 @@
/// <reference path="../chokidar/chokidar.d.ts"/>
/// <reference path="../node/node.d.ts" />
/// <reference path="../micromatch/micromatch.d.ts" />
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 {