mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Agenda missing props/methods (#10239)
This commit is contained in:
committed by
Mohamed Hegazy
parent
994439d8ed
commit
b3889a9127
10
agenda/agenda.d.ts
vendored
10
agenda/agenda.d.ts
vendored
@@ -319,6 +319,11 @@ declare module "agenda" {
|
||||
* The date/time the job last failed.
|
||||
*/
|
||||
failedAt: Date;
|
||||
|
||||
/**
|
||||
* Job's state
|
||||
*/
|
||||
disabled: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -409,6 +414,11 @@ declare module "agenda" {
|
||||
* @param cb Called after the job has been saved to the database.
|
||||
*/
|
||||
touch(cb?: Callback): void;
|
||||
|
||||
/**
|
||||
* Calculates next time the job should run
|
||||
*/
|
||||
computeNextRunAt(): Job;
|
||||
}
|
||||
|
||||
interface JobOptions {
|
||||
|
||||
Reference in New Issue
Block a user