mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
Add "instances" array + test
This commit is contained in:
1 parent
ce56f8e2f4
commit
9f1a17eef4
2 files changed
+4
No files matched your search
@@ -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