method Worker.prototype.emitWorker.prototype.emit(event: "error",err: Error,): booleanDeprecatedParametersevent: "error"err: ErrorReturn TypebooleanWorker.prototype.emit(event: "exit",exitCode: number,): booleanDeprecatedParametersevent: "exit"exitCode: numberReturn TypebooleanWorker.prototype.emit(event: "message",value: any,): booleanDeprecatedParametersevent: "message"value: anyReturn TypebooleanWorker.prototype.emit(event: "messageerror",error: Error,): booleanDeprecatedParametersevent: "messageerror"error: ErrorReturn TypebooleanWorker.prototype.emit(event: "online"): booleanDeprecatedParametersevent: "online"Return TypebooleanWorker.prototype.emit(event: string | symbol,...args: any[],): booleanDeprecatedParametersevent: string | symbol<span>...args</span>: any[]Return Typeboolean