-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.d.ts
83 lines (77 loc) · 1.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* eslint-disable no-unused-vars */
type Translation = import('./src/types/Translation').Translation;
type Lang = import('@code4recovery/spec').Language;
interface TSMLReactConfig {
cache: boolean;
calendar_enabled: boolean;
columns: string[];
conference_providers: Record<string, string>;
defaults: {
distance: string[];
meeting?: string;
mode: 'search' | 'location' | 'me';
region: string[];
search: string;
time: TSMLReactConfig['times'];
type: string[];
view: 'table' | 'map';
weekday: TSMLReactConfig['weekdays'];
};
distance_options: number[];
distance_unit: 'mi' | 'km';
duration: number;
feedback_emails: string[];
filters: Array<'region' | 'distance' | 'weekday' | 'time' | 'type'>;
flags?: string[];
in_person_types: string[];
language: Lang;
map: {
markers: {
location: {
backgroundImage: string;
cursor: string;
height: number;
width: number;
};
};
style: string;
};
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'>;
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;
}