forked from add2cal/add-to-calendar-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
59 lines (59 loc) · 1.54 KB
/
index.d.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
declare module 'add-to-calendar-button' {
export function atcb_init(): void;
export function atcb_action(
config: {
name: string;
description?: string;
startDate: string;
startTime?: string;
endDate?: string;
endTime?: string;
location?: string;
icsFile?: string;
images?: string[];
recurrence?: string;
recurrence_interval?: bigint;
recurrence_until?: string;
recurrence_count?: string;
recurrence_byDay?: string;
recurrence_byMonth?: string;
recurrence_byMonthDay?: string;
recurrence_weekstart?: string;
sequence?: bigint;
identifier?: string;
options: ('Apple' | 'Google' | 'iCal' | 'Microsoft365' | 'MicrosoftTeams' | 'Outlook.com' | 'Yahoo')[];
iCalFileName?: string;
timeZone?: string;
trigger?: 'hover' | 'click';
listStyle?: 'dropdown' | 'dropdown-static' | 'overlay' | 'modal';
background?: boolean;
buttonStyle?: 'default' | '3d' | 'flat' | 'round' | 'neumorphism' | 'text' | 'none';
size?: bigint;
customLabels?: object;
lightMode?: 'system' | 'dark' | 'light' | 'bodyScheme';
language?:
| 'en'
| 'de'
| 'nl'
| 'fr'
| 'es'
| 'pt'
| 'tr'
| 'zh'
| 'ar'
| 'hi'
| 'pl'
| 'id'
| 'no'
| 'fi'
| 'sv'
| 'cs'
| 'ja'
| 'it'
| 'ko'
| 'vi';
},
triggerElement?: HTMLElement,
keyboardTrigger?: boolean
): void;
}