interface Worker
extends EventTarget
onerror: (this: Worker,e: ErrorEvent,) => any | null
onmessage: (this: Worker,e: MessageEvent,) => any | null
onmessageerror: (this: Worker,e: MessageEvent,) => any | null
postMessage(message: any,transfer: Transferable[],): void
postMessage(message: any,options?: StructuredSerializeOptions,): void
addEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
removeEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | EventListenerOptions,): void
removeEventListener(): void
terminate(): void