-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
30 lines (26 loc) · 919 Bytes
/
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
declare module '@langurama/log' {
interface LanguramaTerminalConfiguration {
type: 'terminal';
level?: 'error' | 'warn' | 'info' | 'debug' | 'trace';
callee?: boolean;
chalk?: Object;
}
interface LanguramaFileConfiguration {
type: 'file';
level?: 'error' | 'warn' | 'info' | 'debug' | 'trace';
callee?: boolean;
path?: string;
json?: boolean;
}
type LanguramaConfiguration = LanguramaTerminalConfiguration | LanguramaFileConfiguration;
interface LanguramaLog {
error: (...messages: any) => void;
warn: (...messages: any) => void;
info: (...messages: any) => void;
debug: (...messages: any) => void;
trace: (...messages: any) => void;
}
export default function languramaLog(
configuration?: LanguramaConfiguration | LanguramaConfiguration[]
): LanguramaLog;
}