-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Debounce missing in TypeScript and docs #2763
Labels
Comments
roggervalf
added a commit
that referenced
this issue
Aug 28, 2024
This was referenced Sep 26, 2024
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I see the debounce functionality was added recently in #2760, thank you for that!
Already managed to use it successfully, but noticed that the types haven't been updated to support it so had to use
@ts-expect-error
to avoid TypeScript errors.Also there is no mention of it in the docs yet, mainly looked up the functionality in the above PR and in the BullMQ docs.
Could the types be updated to support debounce? I assume it would mean adding
debounce?: { id: string; ttl?: number }
toJobOptions
andremoveDebounceKey(debounceKey: string): Promise<number>
toQueue
. If that's all it would be I could also help in contributing.Additionally would be good to also mention this useful function in the docs somewhere. Would it only need changes in
REFERENCE.md
?Bull version
4.16.0
The text was updated successfully, but these errors were encountered: