Update index.d.ts

add missing parameter `hasSeconds` to `later.parse.cron()`
This commit is contained in:
Windz
2017-04-05 12:12:49 +08:00
committed by GitHub
parent 742cb488d6
commit 363d8787e9

View File

@@ -152,8 +152,9 @@ declare namespace later {
* Create schedule data by parsing a cron string
*
* @param {string} [input] - A string value to parse.
* @param {boolean} [hasSeconds] - Whether the cron expression has second part.
*/
cron(input?: string): ScheduleData;
cron(input?: string, hasSeconds?: boolean): ScheduleData;
/**
* Create schedule data by paring a human readable string.