From 46ecb57af8d48f28c608268fa4b37fb5244043e5 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 13 Dec 2017 11:51:08 +0000 Subject: [PATCH] Update icaljs definitions. --- src/ical.js.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ical.js.d.ts b/src/ical.js.d.ts index 9dfae0d..b8c4575 100644 --- a/src/ical.js.d.ts +++ b/src/ical.js.d.ts @@ -16,8 +16,13 @@ declare module 'ical.js' { getFirstProperty(name?: string): Property; getAllProperties(name?: string): Array; + addProperty(property: Property): Property; + addPropertyWithValue(name: string, value: string | number | object): Property; + updatePropertyWithValue(name: string, value: string | number | object): Property; + removeAllProperties(name?: string): boolean; + addSubcomponent(component: Component): Component; } @@ -40,8 +45,13 @@ declare module 'ical.js' { name: string; type: string; + constructor(jCal: Array | string, parent?: Component); + getFirstValue(): any; getValues(): Array; + + setParameter(name: string, value: string | Array): void; + setValue(value: string | object): void; toJSON(): any; }