Interface WorkerInterface

Hierarchy

  • WorkerInterface

Properties

postMessage: ((message: any, transfer: Transferable[]) => void)

Type declaration

    • (message: any, transfer: Transferable[]): void
    • Parameters

      • message: any
      • transfer: Transferable[]

      Returns void

addEventListener: ((type: string, listener: ((event: MessageEvent<any>) => void)) => void)

Type declaration

    • (type: string, listener: ((event: MessageEvent<any>) => void)): void
    • Parameters

      • type: string
      • listener: ((event: MessageEvent<any>) => void)
          • (event: MessageEvent<any>): void
          • Parameters

            • event: MessageEvent<any>

            Returns void

      Returns void

removeEventListener: ((type: string, listener: ((event: MessageEvent<any>) => void)) => void)

Type declaration

    • (type: string, listener: ((event: MessageEvent<any>) => void)): void
    • Parameters

      • type: string
      • listener: ((event: MessageEvent<any>) => void)
          • (event: MessageEvent<any>): void
          • Parameters

            • event: MessageEvent<any>

            Returns void

      Returns void

Generated using TypeDoc