-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (47 loc) · 1.02 KB
/
types.ts
File metadata and controls
50 lines (47 loc) · 1.02 KB
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
// Admin Types
export type SettingsType = {
collection: null | string;
startField: null | string;
endField: null | string;
titleField: null | string;
colorField: null | string;
defaultDuration: number;
drafts: boolean;
startHour: string;
endHour: string;
defaultView: string;
monthView: boolean;
weekView: boolean;
workWeekView: boolean;
dayView: boolean;
todayButton: boolean;
createButton: boolean;
primaryColor: string;
eventColor: string;
};
export type SettingsContextType = {
settings: SettingsType;
updateField: (setting: Partial<SettingsType>) => void;
saveSettings: () => Promise<void>;
loading: boolean;
saving: boolean;
};
// Server Types
export type ExtensionType = {
id: string;
name: string;
startFields: string[];
endFields: string[];
startHandler?: Function;
endHandler?: Function;
};
export type ExtensionsMapType = Record<
string,
{
name: string;
startFields: string[];
endFields: string[];
startHandler?: Function;
endHandler?: Function;
}
>;