From 771ef63514fb41176875407fb93a540c162e9e33 Mon Sep 17 00:00:00 2001 From: scippio Date: Sat, 14 Jan 2017 00:31:01 +0100 Subject: [PATCH 1/2] added new option parameter added new option parameter for new package version compatibility --- cron/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cron/index.d.ts b/cron/index.d.ts index e962a9eb27..79a5b96a01 100644 --- a/cron/index.d.ts +++ b/cron/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for cron 1.0.9 +// Type definitions for cron 1.2.1 // Project: https://www.npmjs.com/package/cron // Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,9 +6,9 @@ interface CronJobStatic { - new (cronTime: string | Date, onTick: () => void, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any): CronJob; + new (cronTime: string | Date, onTick: () => void, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any, runOnInit?: boolean): CronJob; new (options: { - cronTime: string | Date; onTick: () => void; onComplete?: () => void; start?: boolean; timeZone?: string; context?: any + cronTime: string | Date; onTick: () => void; onComplete?: () => void; start?: boolean; timeZone?: string; context?: any; runOnInit?: boolean }): CronJob; } interface CronJob { From 04dcec1c303f31c7ca825b898a9e7d5c7149b640 Mon Sep 17 00:00:00 2001 From: Bowden Kelly Date: Fri, 3 Feb 2017 18:18:22 -0800 Subject: [PATCH 2/2] Update index.d.ts --- cron/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/index.d.ts b/cron/index.d.ts index 79a5b96a01..d4fa027c93 100644 --- a/cron/index.d.ts +++ b/cron/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for cron 1.2.1 +// Type definitions for cron 1.2 // Project: https://www.npmjs.com/package/cron // Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped