Update ical.js types.

master
Tom Hacohen 5 years ago
parent 7f19a95bb9
commit 1d792add0f

@ -142,4 +142,33 @@ declare module 'ical.js' {
static public register(tzid: string, zone: Timezone | Component); static public register(tzid: string, zone: Timezone | Component);
static public remove(tzid: string): Timezone | null; static public remove(tzid: string): Timezone | null;
} }
export type FrequencyValues = 'YEARLY' | 'MONTHLY' | 'WEEKLY' | 'DAILY' | 'HOURLY' | 'MINUTELY' | 'SECONDLY';
export enum WeekDay {
SUNDAY = 1,
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
}
export class Recur {
public freq?: FrequencyValues;
public interval?: number;
public wkst?: WeekDay;
public until?: Time;
public count?: number;
public bysecond?: number[];
public byminute?: number[];
public byhour?: number[];
public byday?: number[];
public bymonthday?: number[];
public byyearday?: number[];
public byweekno?: number[];
public bymonth?: number[];
public bysetpos?: number[];
}
} }

Loading…
Cancel
Save