Update stream() signature and add tests

This commit is contained in:
Glen committed 2016-01-30 21:20:51 +02:00
1 parent 5d0f2126c8
commit ce56f8e2f4
2 files changed
+24 -1

No files matched your search

+1 -1
View File
@@ -365,7 +365,7 @@ declare module "browser-sync" {
* The stream method returns a transform stream and can act once or on many files.
* @param opts Configuration for the stream method
*/
stream(opts?: { once: boolean }): NodeJS.ReadWriteStream;
stream(opts?: { once?: boolean, match?: string | RegExp | ((testString: string) => boolean) | (string | RegExp | ((testString: string) => boolean))[] }): NodeJS.ReadWriteStream;
/**
* Helper method for browser notifications
* @param message Can be a simple message such as 'Connected' or HTML