generated from dullkingsman/opensource-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
42 lines (40 loc) · 987 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Calendar event data
*/
export interface Event {
/** Name of the event. */
title: string;
/** The starting date for the event. */
startDate: string;
/** The closing date for the event. */
endDate?: string;
/** Description of the event. */
description?: string;
/** Tells whether the event is all day. */
allDay?: boolean;
/** Location of the event. */
location?: string;
/** Recurrence rules for the event. */
rRule?: string;
/** The organizer of the event. */
organizer?: Organizer;
/** Tells whether the event is available. */
busy?: boolean;
/** Invited guests' emails. */
guests?: string[];
/** A more dynamic rendition of the event information. */
url?: string;
}
/**
* An event organizer
*/
export interface Organizer {
/** The name of the organizer. */
name: string;
/** The email of the organizer. */
email: string;
}
/**
* Client type
*/
export type Client = "google" | "outlook" | "office365" | "yahoo" | "ics";