diff --git a/src/index.ts b/src/index.ts index 74b0d9c..6761b90 100644 --- a/src/index.ts +++ b/src/index.ts @@ -285,7 +285,7 @@ export class Agenda extends EventEmitter { ): Promise[]>; async every( interval: string | number, - names: string, + name: string, data?: undefined, options?: { timezone?: string; skipImmediate?: boolean } ): Promise>; @@ -297,7 +297,7 @@ export class Agenda extends EventEmitter { ): Promise[]>; async every( interval: string | number, - names: string, + name: string, data: DATA, options?: { timezone?: string; skipImmediate?: boolean } ): Promise>; @@ -345,7 +345,7 @@ export class Agenda extends EventEmitter { names: string[], data: DATA ): Promise[]>; - async schedule(when: string | Date, names: string, data: DATA): Promise>; + async schedule(when: string | Date, name: string, data: DATA): Promise>; async schedule(when: string | Date, names: string | string[], data?: any) { const createJob = async name => { const job = this.create(name, data);