mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Add "instances" array + test
This commit is contained in:
@@ -78,6 +78,8 @@ evt.on("init", function () {
|
||||
|
||||
browserSync(config);
|
||||
|
||||
var instance = browserSync.instances[0];
|
||||
|
||||
var bs = browserSync.create();
|
||||
|
||||
bs.init({
|
||||
|
||||
Vendored
+2
@@ -328,6 +328,8 @@ declare module "browser-sync" {
|
||||
* @param name the identifier used for retrieval
|
||||
*/
|
||||
get(name: string): BrowserSyncInstance;
|
||||
|
||||
instances: BrowserSyncInstance[];
|
||||
}
|
||||
|
||||
interface BrowserSyncInstance {
|
||||
|
||||
Reference in New Issue
Block a user