@weex-cli/debug-server
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.32 • Public • Published

@weex-cli/debug-server

Remote debug server for Weex Debug.

index.d.ts


interface DevtoolOptions {
  channelId: string
  port: number
  ip: string
  [key: string]: any
}

interface Devtool extends EventEmitter {
  /**
   * 关闭Devtool服务
   *
   * @memberof Devtool
   */
  close ():void
  /**
   * 获取生成的socket地址
   *
   * @type {{
   *     entry: string
   *     inspector: string
   *     native: string
   *     debugger: string
   *   }}
   * @memberof Devtool
   */
  socket: {
    entry: string
    inspector: string
    native: string
    debugger: string
  }
  /**
   * 获取Runtime托管的地址
   *
   * @type {string}
   * @memberof Devtool
   */
  runtime: string
}

declare module '@ali/switchboard' {
  /**
   * 用于启动Devtool服务接口
   *
   * @export
   * @param {DevtoolOptions} options
   * @returns {Devtool}
   */
  export function start (options: DevtoolOptions): Devtool
}

Readme

Keywords

Package Sidebar

Install

npm i @weex-cli/debug-server

Weekly Downloads

7

Version

2.0.0-beta.32

License

MIT

Unpacked Size

157 kB

Total Files

64

Last publish

Collaborators

  • hanks
  • erha19
  • weex-kit
  • balloonzzq
  • ggice