diff --git a/browser-sync/browser-sync-tests.ts b/browser-sync/browser-sync-tests.ts index e54439afb..bb4f8c7c4 100644 --- a/browser-sync/browser-sync-tests.ts +++ b/browser-sync/browser-sync-tests.ts @@ -78,6 +78,8 @@ evt.on("init", function () { browserSync(config); +var instance = browserSync.instances[0]; + var bs = browserSync.create(); bs.init({ diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 05dcaaaa3..1ffea1c0c 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -328,6 +328,8 @@ declare module "browser-sync" { * @param name the identifier used for retrieval */ get(name: string): BrowserSyncInstance; + + instances: BrowserSyncInstance[]; } interface BrowserSyncInstance {