method Worker.prototype.onceWorker.prototype.once(event: "error",listener: (err: Error) => void,): thisDeprecatedParametersevent: "error"listener: (err: Error) => voidReturn TypethisWorker.prototype.once(event: "exit",listener: (exitCode: number) => void,): thisDeprecatedParametersevent: "exit"listener: (exitCode: number) => voidReturn TypethisWorker.prototype.once(event: "message",listener: (value: any) => void,): thisDeprecatedParametersevent: "message"listener: (value: any) => voidReturn TypethisWorker.prototype.once(event: "messageerror",listener: (error: Error) => void,): thisDeprecatedParametersevent: "messageerror"listener: (error: Error) => voidReturn TypethisWorker.prototype.once(event: "online",listener: () => void,): thisDeprecatedParametersevent: "online"listener: () => voidReturn TypethisWorker.prototype.once(event: string | symbol,listener: (...args: any[]) => void,): thisDeprecatedParametersevent: string | symbollistener: (...args: any[]) => voidReturn Typethis