mirror of
https://github.com/OptimalBits/bull.git
synced 2026-07-04 09:27:46 +08:00
fix(types): add missing keys to repeat opts
This commit is contained in:
committed by
Manuel Astudillo
parent
909a07e270
commit
e4e64572a3
Vendored
+13
-1
@@ -395,6 +395,11 @@ declare namespace Bull {
|
||||
* Number of times the job should repeat at max.
|
||||
*/
|
||||
limit?: number | undefined;
|
||||
|
||||
/**
|
||||
* The start value for the repeat iteration count.
|
||||
*/
|
||||
count?: number | undefined;
|
||||
}
|
||||
|
||||
interface CronRepeatOptions extends RepeatOptions {
|
||||
@@ -437,7 +442,14 @@ declare namespace Bull {
|
||||
/**
|
||||
* Repeat job according to a cron specification
|
||||
*/
|
||||
repeat?: CronRepeatOptions | EveryRepeatOptions | undefined;
|
||||
repeat?:
|
||||
| ((CronRepeatOptions | EveryRepeatOptions) & {
|
||||
/**
|
||||
* The key for the repeatable job metadata in Redis.
|
||||
*/
|
||||
readonly key: string;
|
||||
})
|
||||
| undefined;
|
||||
|
||||
/**
|
||||
* Backoff setting for automatic retries if the job fails
|
||||
|
||||
Reference in New Issue
Block a user