forked from HoeenCoder/Universal-Backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal-variables.d.ts
37 lines (34 loc) · 1.05 KB
/
global-variables.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
import { Chat as ChatType } from './chat'
import * as ConfigType from './config/config-example'
import { Tools as ToolsType } from './tools'
import { Rooms as RoomsType } from './rooms'
import * as MafiaType from './mafia'
declare global {
namespace NodeJS {
interface Global {
Chat: any;
sendMessage: any;
sendPM: any;
Config: any;
Mafia: any;
Tools: any;
toId: any;
Rooms: any;
debug: any;
log: any;
}
}
const Chat: typeof ChatType;
const sendMessage: typeof ChatType.sendMessage
const sendPM: typeof ChatType.sendPM
const Config: typeof ConfigType
const Mafia: typeof MafiaType
const Tools: typeof ToolsType
const toId: typeof ToolsType.toId
const Rooms: typeof RoomsType
const debug: (msg: string) => void;
const log: (msg: string) => void;
const Room: typeof RoomsType.Room
const CommandContext: typeof ChatType.ChatParser
const MafiaTracker: typeof MafiaType.MafiaTracker
}