[@types/browser-sync] Fix type of bs: object -> BrowserSyncInstance (#35460)

* Fix type of bs: object -> BrowserSyncInstance

* fix version to MAJOR.MINOR
This commit is contained in:
Yuma Hashimoto 2019-05-21 01:04:13 +09:00 committed by Nathan Shively-Sanders
parent 49245ed7e4
commit cdc7decebc

View File

@ -1,9 +1,10 @@
// Type definitions for browser-sync
// Type definitions for browser-sync 2.26
// Project: http://www.browsersync.io/
// Definitions by: Asana <https://asana.com>,
// Joe Skeen <https://github.com/joeskeen>
// Thomas "Thasmo" Deinhamer <https://thasmo.com/>
// Kiyotoshi Ichikawa <https://github.com/aznnomness>
// Yuma Hashimoto <https://github.com/yuma84>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@ -454,7 +455,7 @@ declare namespace browserSync {
* Start the Browsersync service. This will launch a server, proxy or start the snippet mode
* depending on your use-case.
*/
(config?: Options, callback?: (err: Error, bs: object) => any): BrowserSyncInstance;
(config?: Options, callback?: (err: Error, bs: BrowserSyncInstance) => any): BrowserSyncInstance;
/**
*
*/
@ -488,7 +489,7 @@ declare namespace browserSync {
* Start the Browsersync service. This will launch a server, proxy or start the snippet mode
* depending on your use-case.
*/
init(config?: Options, callback?: (err: Error, bs: object) => any): BrowserSyncInstance;
init(config?: Options, callback?: (err: Error, bs: BrowserSyncInstance) => any): BrowserSyncInstance;
/**
* This method will close any running server, stop file watching & exit the current process.
*/