diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index 58b85e09f3..e20b570202 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for browser-sync +// Type definitions for browser-sync 2.26 // Project: http://www.browsersync.io/ // Definitions by: Asana , // Joe Skeen // Thomas "Thasmo" Deinhamer // Kiyotoshi Ichikawa +// Yuma Hashimoto // 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. */