Skip to content

TypeScript definition file #37

Closed
@jlfwong

Description

@jlfwong

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions