icalendar-events
Version:
A RFC5545 compliant parser for iCalendar VEVENT with time zone support and accurate recurring events generation.
31 lines • 933 B
TypeScript
import { DateTime } from "luxon";
export type Freq = "SECONDLY" | "MINUTELY" | "HOURLY" | "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
export type Weekday = "MO" | "TU" | "WE" | "TH" | "FR" | "SA" | "SU";
export type WeekdayNum = {
nth: number | null;
weekday: Weekday;
};
export declare class RRule {
freq: Freq | null;
until: DateTime | null;
count: number | null;
interval: number;
bysecond: number[];
byminute: number[];
byhour: number[];
byday: WeekdayNum[];
bymonthday: number[];
byyearday: number[];
byweekno: number[];
bymonth: number[];
bysetpos: number[];
wkst: Weekday;
matchesRRule(dateTime: DateTime, ignoreSetPos?: boolean): boolean;
advanceDate(from: DateTime): DateTime;
private getAdvanceFreq;
private unitsCap;
private adjustLocaleForWkst;
toString(): string;
constructor(rrule: string);
}
//# sourceMappingURL=rrule.d.ts.map