Skip to content

Commit

Permalink
docs(worker): correct typings on event failed (#2818)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgozdz authored Oct 11, 2024
1 parent 36ef070 commit 4b80451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gitbook/guide/workers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
});
```
Expand Down

0 comments on commit 4b80451

Please sign in to comment.