Agenda missing props/methods (#10239)

This commit is contained in:
Dmitry A. Efimenko
2016-07-23 23:00:16 -07:00
committed by Mohamed Hegazy
parent 994439d8ed
commit b3889a9127

10
agenda/agenda.d.ts vendored
View File

@@ -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 {