-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
30 lines (23 loc) · 696 Bytes
/
index.d.ts
File metadata and controls
30 lines (23 loc) · 696 Bytes
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 'logginglog' {
import type chalk from 'chalk-extra';
type Style = 'bold' | 'italic' | 'underline' | 'dim';
type Color = keyof typeof chalk;
export interface Logger {
log(msg: string): void;
info(msg: string): void;
warn(msg: string): void;
error(msg: string): void;
}
export function createLogger(): Logger;
export function customLogger(
name: string,
options: { color: Color; styles?: Style[] }
): (msg: string) => void;
export function createFileLogger(path?: string): Logger;
const logginglog: {
createLogger: typeof createLogger;
customLogger: typeof customLogger;
createFileLogger: typeof createFileLogger;
};
export default logginglog;
}