UNPKG

@barinbritva/add-to-calendar

Version:

[![Dependencies counter](https://img.shields.io/badge/dependencies-none-green?style=flat-square)](https://github.com/barinbritva/add-to-calendar/blob/master/package.json) [![License](https://img.shields.io/npm/l/micromatch?style=flat-square)](https://gith

35 lines (34 loc) 1.35 kB
import { Attendee } from './Attendee'; import { Location } from './Location'; export declare class Event { title: string; description?: string | undefined; location?: Location | undefined; uid?: string | undefined; private _startDate; private _endDate; private duration; private _attendees; constructor(title: string, startDate: Date, endDateOrDuration?: Date | number | null, description?: string | undefined, location?: Location | undefined, attendees?: Attendee[], uid?: string | undefined); get startDate(): Date; get endDate(): Date; get locationName(): string | undefined; get locationCoordinates(): import("./Location").LocationCoordinates | undefined; get attendees(): Attendee[]; reschedule(startDate: Date, endDateOrDuration?: Date | number | null): this; isAllDayEvent(): boolean; getStartDateAsString(): string; getEndDateAsString(): string; changeTitle(value: string): this; changeDescription(value: string): this; changeLocation(value: Location): this; addAttendees(...attendees: Attendee[]): this; clearAttendees(): this; hasAttendees(): boolean; changeUid(uid: string): this; private getNextDayAfterStartDate; private setEndDate; private assertDatesAreCorrect; private getDateAsString; private handleDurationInput; }