Skip to content

Type fixes for the callback function #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
declare module 'browserstack-local' {
declare module "browserstack-local" {
interface Options {
key: string
verbose: boolean
force: boolean
only: string
onlyAutomate: boolean
forceLocal: boolean
localIdentifier: string
folder: string
proxyHost: string
proxyPort: string
proxyUser: string
proxyPass: string
forceProxy: boolean
logFile: string
parallelRuns: string
binarypath: string
[key: string]: string | boolean
key: string;
verbose: boolean;
force: boolean;
only: string;
onlyAutomate: boolean;
forceLocal: boolean;
localIdentifier: string;
folder: string;
proxyHost: string;
proxyPort: string;
proxyUser: string;
proxyPass: string;
forceProxy: boolean;
logFile: string;
parallelRuns: string;
binarypath: string;
[key: string]: string | boolean;
}

class Local {
start(options: Partial<Options>, callback: () => void): void
isRunning(): boolean
stop(callback: () => void): void
start(options: Partial<Options>, callback: (error?: Error) => void): void;
isRunning(): boolean;
stop(callback: () => void): void;
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browserstack-local",
"version": "1.4.4",
"version": "1.4.5",
"description": "Nodejs bindings for BrowserStack Local",
"engine": "^0.10.44",
"main": "index.js",
Expand Down