We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this kind of code, the job is not properly typed.
job
worker.on('completed', job => { console.log(job) })
Would be ideal, if this had at least the Job type, but ideally propagate the type all the way from the worker generic to the job.
Job
May also find the following modules interesting:
The text was updated successfully, but these errors were encountered:
yes, this is a know limitation. Not so trivial to do in practice at least I did not find a really good way to solve it.
Sorry, something went wrong.
btw, won't add a new dependency only for events, but thanks for the reference to the modules, they can be used for inspiration.
@moltar please try last version, event listener typing was added
GitBook: [#147] No subject
e625fbc
No branches or pull requests
In this kind of code, the
job
is not properly typed.Would be ideal, if this had at least the
Job
type, but ideally propagate the type all the way from the worker generic to thejob
.May also find the following modules interesting:
The text was updated successfully, but these errors were encountered: