import { DedicatedWorkerGlobalScope } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.worker.d.ts";
Properties
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null
Methods
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(): void
type: K,
listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
close(): void
postMessage(message: any, transfer: Transferable[]): void
postMessage(message: any, options?: StructuredSerializeOptions): void
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(): void
type: K,
listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
removeEventListener(): void