From 048c591b950e80e0f3721a4c2f19969ffbf4f5c2 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 23 Oct 2018 23:27:39 +0100 Subject: [PATCH] ICAL types: add more types and properties. --- src/types/ical.js.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/types/ical.js.d.ts b/src/types/ical.js.d.ts index 888df78..922666d 100644 --- a/src/types/ical.js.d.ts +++ b/src/types/ical.js.d.ts @@ -37,6 +37,9 @@ declare module 'ical.js' { component: Component; + isRecurring(): boolean; + iterator(startTime?: Time): RecurExpansion; + constructor(component?: Component | null, options?: {strictExceptions: boolean, exepctions: Array}); } @@ -83,7 +86,20 @@ declare module 'ical.js' { adjust( aExtraDays: number, aExtraHours: number, aExtraMinutes: number, aExtraSeconds: number, aTimeopt?: Time): void; + addDuration(aDuration: Duration): void; + subtractDateTz(aDate: Time): Duration; + toJSDate(): Date; toJSON(): TimeJsonData; } + + class Duration { + days: number; + } + + class RecurExpansion { + complete: boolean; + + next(): Time; + } }