interface Worker
extends EventTarget
Properties Jump to heading
Jump to headingonerror: (this: Worker,e: ErrorEvent,) => any | null
Jump to headingonmessage: (this: Worker,e: MessageEvent,) => any | null
Jump to headingonmessageerror: (this: Worker,e: MessageEvent,) => any | null
Methods Jump to heading
Jump to headingpostMessage(message: any,transfer: Transferable[],): void
Jump to headingpostMessage(message: any,options?: StructuredSerializeOptions,): void
Jump to headingaddEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
Jump to headingaddEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
Jump to headingremoveEventListener<K extends keyof WorkerEventMap>(type: K,listener: (this: Worker,ev: WorkerEventMap[K],) => any,options?: boolean | EventListenerOptions,): void
Jump to headingterminate(): void