mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +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({
|
||||
|
||||
2
browser-sync/browser-sync.d.ts
vendored
2
browser-sync/browser-sync.d.ts
vendored
@@ -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