interface Worker
implements EventTarget
import { type Worker } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";
Properties
optional
onerror: (e: ErrorEvent) => voidoptional
onmessage: (e: MessageEvent) => voidoptional
onmessageerror: (e: MessageEvent) => voidMethods
postMessage(message: any, transfer: Transferable[]): void
postMessage(message: any, options?: StructuredSerializeOptions): void
addEventListener<K extends keyof WorkerEventMap>(): void
type: K,
listener: (this: Worker, ev: WorkerEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof WorkerEventMap>(): void
type: K,
listener: (this: Worker, ev: WorkerEventMap[K]) => any,
options?: boolean | EventListenerOptions,
import { Worker } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";
type
{ readonly prototype: Worker; new (specifier: string | URL, options?: WorkerOptions): Worker; }