-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathindex.d.ts
More file actions
95 lines (90 loc) · 2.04 KB
/
index.d.ts
File metadata and controls
95 lines (90 loc) · 2.04 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
type Translation = import('./src/types/Translation').Translation;
type Lang = import('@code4recovery/spec').Language;
type MapMarker = {
html: string;
height: number;
width: number;
};
type Mode = 'search' | 'location' | 'me';
type View = 'table' | 'map';
interface TSMLReactConfig {
cache: boolean;
calendar_enabled: boolean;
columns: string[];
conference_providers: Record<string, string>;
defaults: {
distance?: number;
meeting?: string;
mode: Mode;
region: string[];
search: string;
time: TSMLReactConfig['times'];
type: string[];
view: View;
weekday: TSMLReactConfig['weekdays'];
};
distance_default: number;
distance_options: number[];
distance_unit: 'mi' | 'km';
duration: number;
feedback_emails: string[];
filters: Array<'region' | 'weekday' | 'time' | 'type'>;
flags?: string[];
in_person_types: string[];
language: Lang;
map: {
markers: {
geocode: MapMarker;
geolocation: MapMarker;
location: MapMarker;
};
tiles: {
attribution: string;
url: string;
};
tiles_dark?: {
attribution: string;
url: string;
};
};
modes: Array<Mode>;
now_offset: number;
params: Array<'search' | 'mode' | 'view' | 'meeting'>;
show: {
controls: boolean;
title: boolean;
};
strings: {
[lang in Lang]: Translation;
};
times: Array<'morning' | 'midday' | 'evening' | 'night' | 'appointment'>;
views: Array<View>;
weekdays: string[];
}
declare var tsml_react_config: TSMLReactConfig | undefined;
//google analytics globals
declare var gtag:
| ((
type: 'event',
action: string,
params: {
event_category: string;
event_label: string;
}
) => void)
| undefined;
declare var ga:
| ((
type: 'send',
params: {
hitType: 'event';
eventCategory: string;
eventAction: string;
eventLabel: string;
}
) => void)
| undefined;
//declaration merge for IE compat
interface Navigator {
msSaveBlob: (blob: Blob, name: string) => void;
}