Skip to content

Commit d238484

Browse files
authored
Merge pull request #94 from yashLadha/chore/type-fixes
Type fixes for the callback function
2 parents 4d1315c + 8176750 commit d238484

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

index.d.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
declare module 'browserstack-local' {
1+
declare module "browserstack-local" {
22
interface Options {
3-
key: string
4-
verbose: boolean
5-
force: boolean
6-
only: string
7-
onlyAutomate: boolean
8-
forceLocal: boolean
9-
localIdentifier: string
10-
folder: string
11-
proxyHost: string
12-
proxyPort: string
13-
proxyUser: string
14-
proxyPass: string
15-
forceProxy: boolean
16-
logFile: string
17-
parallelRuns: string
18-
binarypath: string
19-
[key: string]: string | boolean
3+
key: string;
4+
verbose: boolean;
5+
force: boolean;
6+
only: string;
7+
onlyAutomate: boolean;
8+
forceLocal: boolean;
9+
localIdentifier: string;
10+
folder: string;
11+
proxyHost: string;
12+
proxyPort: string;
13+
proxyUser: string;
14+
proxyPass: string;
15+
forceProxy: boolean;
16+
logFile: string;
17+
parallelRuns: string;
18+
binarypath: string;
19+
[key: string]: string | boolean;
2020
}
2121

2222
class Local {
23-
start(options: Partial<Options>, callback: () => void): void
24-
isRunning(): boolean
25-
stop(callback: () => void): void
23+
start(options: Partial<Options>, callback: (error?: Error) => void): void;
24+
isRunning(): boolean;
25+
stop(callback: () => void): void;
2626
}
27-
}
27+
}

package.json

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

0 commit comments

Comments
 (0)