browserstack/browserstack-local-nodejs

TypeScript definition file

jlfwong opened this issue · 1 comments

Hi there!

Would you accept a PR for a TypeScript definition file?

If you're not interested in this being part of this repository, I'm happy to contribute it to https://github.com/DefinitelyTyped/DefinitelyTyped instead.

The definition file I have locally looks like this:

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
  }

  class Local {
    start(options: Partial<Options>, callback: () => void): void
    isRunning(): boolean
    stop(callback: () => void): void
  }
}

@jlfwong yep we would. thanks!