Update icaljs definitions.

master
Tom Hacohen 7 years ago
parent daf27ca517
commit 46ecb57af8

10
src/ical.js.d.ts vendored

@ -16,8 +16,13 @@ declare module 'ical.js' {
getFirstProperty(name?: string): Property; getFirstProperty(name?: string): Property;
getAllProperties(name?: string): Array<Property>; getAllProperties(name?: string): Array<Property>;
addProperty(property: Property): Property;
addPropertyWithValue(name: string, value: string | number | object): Property;
updatePropertyWithValue(name: string, value: string | number | object): Property; updatePropertyWithValue(name: string, value: string | number | object): Property;
removeAllProperties(name?: string): boolean;
addSubcomponent(component: Component): Component; addSubcomponent(component: Component): Component;
} }
@ -40,8 +45,13 @@ declare module 'ical.js' {
name: string; name: string;
type: string; type: string;
constructor(jCal: Array<any> | string, parent?: Component);
getFirstValue(): any; getFirstValue(): any;
getValues(): Array<any>; getValues(): Array<any>;
setParameter(name: string, value: string | Array<string>): void;
setValue(value: string | object): void;
toJSON(): any; toJSON(): any;
} }

Loading…
Cancel
Save