Skip to content

Commit 07aa1cb

Browse files
author
Yash Ladha
committed
Error type in callback
1 parent d238484 commit 07aa1cb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ declare module "browserstack-local" {
1919
[key: string]: string | boolean;
2020
}
2121

22+
type LocalOptions = Partial<Options>;
23+
2224
class Local {
23-
start(options: Partial<Options>, callback: (error?: Error) => void): void;
25+
start(options: LocalOptions, callback: (error?: Error) => void): void;
2426
isRunning(): boolean;
25-
stop(callback: () => void): void;
27+
stop(callback: (error?: Error) => void): void;
2628
}
2729
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browserstack-local",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"description": "Nodejs bindings for BrowserStack Local",
55
"engine": "^0.10.44",
66
"main": "index.js",

0 commit comments

Comments
 (0)