From f3e82ee7e46f31d5383045e97f3bb6e3bc59f02e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 12 Dec 2017 14:21:01 +0000 Subject: [PATCH] Improve ical definitions. --- src/ical.js.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ical.js.d.ts b/src/ical.js.d.ts index 3b2e4f6..c392add 100644 --- a/src/ical.js.d.ts +++ b/src/ical.js.d.ts @@ -38,6 +38,20 @@ declare module 'ical.js' { class Time { isDate: boolean; + static fromString(str: string): Time; + + constructor(data?: { + year?: number, + month?: number, + day?: number, + hour?: number, + minute?: number, + second?: number, + isDate?: boolean + }); + + fromJSDate(aDate: Date | null, useUTC: boolean): void; + toJSDate(): Date; } }