Skip to content

Commit

Permalink
fix(types): add missing keys to repeat opts
Browse files Browse the repository at this point in the history
  • Loading branch information
mamousavi authored and manast committed May 23, 2023
1 parent 909a07e commit e4e6457
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4e6457

Please sign in to comment.