mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[@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:
parent
49245ed7e4
commit
cdc7decebc
7
types/browser-sync/index.d.ts
vendored
7
types/browser-sync/index.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user