fix(types): add missing keys to repeat opts

This commit is contained in:
Mir Amir Mousavi
2023-03-17 13:45:08 +00:00
committed by Manuel Astudillo
parent 909a07e270
commit e4e64572a3
Vendored
+13 -1
View File
@@ -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