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