@kalender/core
Version:
calendar core library
17 lines • 649 B
TypeScript
import { Time } from "../date-tools";
import { CalendarEvent, CalendarRepeat, RepeatTypes } from './definition';
export declare function createEvent<T extends RepeatTypes>(option: Omit<CalendarEvent, 'repeat' | 'id'>, repeat: CalendarRepeat<T>): CalendarEvent;
export declare function createEvents(options: {
id?: Symbol;
title: string;
description?: string;
start: Time;
end: Time;
repeat: {
start: Date | string;
end?: Date | string;
};
customData?: any;
}[]): CalendarEvent[];
export declare function parseEvents(events: string): CalendarEvent[];
//# sourceMappingURL=event.d.ts.map