-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathadditional.d.ts
More file actions
56 lines (51 loc) · 1.24 KB
/
additional.d.ts
File metadata and controls
56 lines (51 loc) · 1.24 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
declare const VERSION: string;
declare const COMMITHASH: string;
declare const BRANCH: string;
type TrackEventValue = Record<string, unknown>;
type TMapLatLngInstance = object;
interface AnalyticsTracker {
track: (eventName: string, eventValue?: TrackEventValue) => void;
}
interface TMapMapInstance {
on: (eventName: string, handler: () => void) => void;
}
interface TMapNamespace {
LatLng: new (lat: number | undefined, lng: number | undefined) => TMapLatLngInstance;
Map: new (
container: HTMLElement | null,
options: {
center: TMapLatLngInstance;
zoom: number;
pitch: number;
rotation: number;
}
) => TMapMapInstance;
MultiMarker: new (options: {
id: string;
map: TMapMapInstance;
styles: {
marker: unknown;
};
geometries: Array<{
id: string;
styleId: string;
position: TMapLatLngInstance;
properties: {
title: string;
};
}>;
}) => unknown;
MarkerStyle: new (options: {
width: number;
height: number;
anchor: {
x: number;
y: number;
};
}) => unknown;
}
interface Window {
gtag?: (command: "event", eventName: string, eventValue?: TrackEventValue) => void;
TMap?: TMapNamespace;
umami?: AnalyticsTracker;
}