Made data optional.

This commit is contained in:
Meir Gottlieb
2016-02-29 15:25:14 -07:00
parent cde004b19a
commit 09671af7fe
+1 -1
View File
@@ -275,7 +275,7 @@ declare module "agenda" {
* @param name The name of the job.
* @param data Data to associated with the job.
*/
create(name: string, data: any): Job;
create(name: string, data?: any): Job;
/**
* Find all Jobs matching `query` and pass same back in cb().