forked from WoltLab/WCF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.d.ts
47 lines (40 loc) · 1.33 KB
/
global.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
import DatePicker from "./ts/WoltLabSuite/Core/Date/Picker";
import Devtools from "./ts/WoltLabSuite/Core/Devtools";
import DomUtil from "./ts/WoltLabSuite/Core/Dom/Util";
import * as ColorUtil from "./ts/WoltLabSuite/Core/ColorUtil";
import * as EventHandler from "./ts/WoltLabSuite/Core/Event/Handler";
import UiDropdownSimple from "./ts/WoltLabSuite/Core/Ui/Dropdown/Simple";
import "@woltlab/zxcvbn";
import { Reaction } from "./ts/WoltLabSuite/Core/Ui/Reaction/Data";
declare global {
interface Window {
Devtools?: typeof Devtools;
ENABLE_DEBUG_MODE: boolean;
ENABLE_DEVELOPER_TOOLS: boolean;
LANGUAGE_ID: number;
PAGE_TITLE: string;
REACTION_TYPES: {
[key: string]: Reaction;
};
TIME_NOW: number;
WCF_PATH: string;
WSC_API_URL: string;
jQuery: JQueryStatic;
WCF: any;
bc_wcfDomUtil: typeof DomUtil;
bc_wcfSimpleDropdown: typeof UiDropdownSimple;
__wcf_bc_colorPickerInit?: () => void;
__wcf_bc_colorUtil: typeof ColorUtil;
__wcf_bc_datePicker: typeof DatePicker;
__wcf_bc_eventHandler: typeof EventHandler;
}
interface String {
hashCode: () => string;
}
interface JQuery {
sortable(...args: any[]): unknown;
redactor(...args: any[]): unknown;
messageTabMenu(...args: any[]): unknown;
}
type ArbitraryObject = Record<string, unknown>;
}