-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
46 lines (41 loc) · 1.24 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
type Extra = {
user_id?: number,
filename?: string,
} & Record<string, unknown>
declare function logToConsole(
errorLevel: string,
sender: string,
errorMessage: string,
extras?: Extra
): void
declare class LoggerClass {
constructor(defaultSender: string)
critical(msg: string, extra?: Extra, sender?: string): void
error(msg: string, extra?: Extra, sender?: string): void
warn(msg: string, extra?: Extra, sender?: string): void
info(msg: string, extra?: Extra, sender?: string): void
debug(msg: string, extra?: Extra, sender?: string): void
trace(msg: string, extra?: Extra, sender?: string): void
}
declare const logger: {
for(sender: string): LoggerClass;
settings: {
level: string;
host: string;
port: string|number;
saveLocal: boolean;
timestampLocal: boolean;
verboseLocal: boolean;
color: boolean;
prettyPrint: boolean;
developer_mode: boolean;
slackHook: any;
};
}
declare const _exports: {
logToConsole: typeof logToConsole;
Logger: typeof logger;
resolveCountryToISO2: (countryInfo: string) => string | null;
resolveCountryToISO3: (countryInfo: string) => string | null;
};
export = _exports;