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