forked from LSS-Manager/LSSM-V.4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpers.d.ts
71 lines (67 loc) · 2.12 KB
/
helpers.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
import { VueConstructor } from 'vue/types/vue';
import { Store } from 'vuex';
import { BuildingMarker, POIMarker } from './Ingame';
import Highcharts from 'highcharts';
import VueI18n from 'vue-i18n';
import L, { Map, Marker } from 'leaflet';
import 'i18n-js';
import { POI } from './modules/EnhancedPOI';
declare global {
interface Window {
keepAlive: boolean;
tellParent(code: string): void;
fullScreen: boolean;
mapkit: unknown;
user_id: number;
username: string;
user_premium: boolean;
alliance_admin: boolean;
alliance_coadmin: boolean;
building_markers: BuildingMarker[];
map_pois_service: {
getMissionPoiMarkersArray(): POIMarker[];
leafletMissionPositionMarkerAdd(poi: POI): void;
};
[PREFIX: string]: Vue | unknown;
map: Map;
L: typeof L;
mission_position_new_marker?: Marker;
mission_graphics: [string, string, string][];
lightboxOpen(link: string): void;
mission_position_new_dragend(): void;
vehicleSelectionReset(): void;
aao_available(arrId: number, calculateTime: boolean): void;
extensionCountdown(remaining: number, id: number): void;
formatTime(remaining: number, t?: boolean): string;
}
}
declare module 'vue/types/vue' {
interface Vue {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
$store: Store<any>;
$vue: VueConstructor;
modal: {
width: number;
height: number;
};
$utils: {
urlRegex: RegExp;
escapeRegex(s: string): string;
getTextNodes(
root: Node,
filter: (node: Node, ...args: unknown[]) => boolean
): Text[];
highChartsDarkMode: Highcharts.Options;
};
$m(
key: string,
args?: {
[key: string]: unknown;
}
): VueI18n.TranslateResult;
}
}
export type returnTypeFunction = (...args: unknown[]) => unknown;
export interface LSSMEvent {
detail: unknown[];
}