Update type definitions for ICAL and fix type errors.
parent
bd077ac996
commit
2947607a45
@ -1,5 +1,20 @@
|
|||||||
declare var ICAL: any;
|
|
||||||
|
|
||||||
declare module 'ical.js' {
|
declare module 'ical.js' {
|
||||||
export = ICAL;
|
function parse(input: string): Array<any>;
|
||||||
|
class Component {
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
constructor(jCal: Array<any> | string, parent?: Component);
|
||||||
|
|
||||||
|
getFirstSubcomponent(name?: string): Component | null;
|
||||||
|
|
||||||
|
getFirstPropertyValue(name?: string): string;
|
||||||
|
}
|
||||||
|
|
||||||
|
class Event {
|
||||||
|
uid: string;
|
||||||
|
summary: string;
|
||||||
|
|
||||||
|
constructor(component?: Component | null,
|
||||||
|
options?: {strictExceptions: boolean, exepctions: Array<Component|Event>});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue