mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Add new "has" method
This commit is contained in:
@@ -78,6 +78,8 @@ evt.on("init", function () {
|
||||
|
||||
browserSync(config);
|
||||
|
||||
var has = browserSync.has("My server");
|
||||
|
||||
var bs = browserSync.create();
|
||||
|
||||
bs.init({
|
||||
|
||||
Vendored
+5
@@ -335,6 +335,11 @@ declare module "browser-sync" {
|
||||
* @param name the identifier used for retrieval
|
||||
*/
|
||||
get(name: string): BrowserSyncInstance;
|
||||
/**
|
||||
* Check if an instance has been created.
|
||||
* @param name the name of the instance
|
||||
*/
|
||||
has(name: string): boolean;
|
||||
}
|
||||
|
||||
interface BrowserSyncInstance {
|
||||
|
||||
Reference in New Issue
Block a user