From c2ca9286abdc46b7aa22024170bf9e73f142a9e9 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 20 Oct 2020 21:48:42 +0200 Subject: [PATCH] fix(typings): names -> name --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);