From 4b8045101fa05f289dde469e10f6233c1b10fad9 Mon Sep 17 00:00:00 2001 From: fgozdz Date: Fri, 11 Oct 2024 15:35:02 +0200 Subject: [PATCH] docs(worker): correct typings on event failed (#2818) --- docs/gitbook/guide/workers/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gitbook/guide/workers/README.md b/docs/gitbook/guide/workers/README.md index 1965e01072..c5a539d0bd 100644 --- a/docs/gitbook/guide/workers/README.md +++ b/docs/gitbook/guide/workers/README.md @@ -71,7 +71,7 @@ worker.on('progress', (job: Job, progress: number | object) => { Finally, when the process fails with an exception it is possible to listen for the `failed` event too: ```typescript -worker.on('failed', (job: Job, error: Error) => { +worker.on('failed', (job: Job | undefined, error: Error, prev: string) => { // Do something with the return value. }); ```