Skip to content

Commit 1ae773d

Browse files
Merge pull request #39 from jlfwong/master
Add TypeScript definition file
2 parents b6c29db + acc1efc commit 1ae773d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Diff for: index.d.ts

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
declare module 'browserstack-local' {
2+
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
20+
}
21+
22+
class Local {
23+
start(options: Partial<Options>, callback: () => void): void
24+
isRunning(): boolean
25+
stop(callback: () => void): void
26+
}
27+
}

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Nodejs bindings for BrowserStack Local",
55
"engine": "^0.10.44",
66
"main": "index.js",
7+
"types": "index.d.ts",
78
"scripts": {
89
"pretest": "./node_modules/.bin/eslint lib/* index.js",
910
"test": "./node_modules/.bin/mocha"

0 commit comments

Comments
 (0)