-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
78 lines (69 loc) · 1.6 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @name ps-logger
* @namespace ps-logger
* @description ps-logger is a production grade logger, basically it is used for logging info,warning,error,silly,verbose and debug statements
* @version 1.0.8
* @author shivansh patel <[email protected]>
* @license MIT
* @example info('Hello World!');
*/
/**
* used for logging debug messages
*
* @param {any} arg
*/
export function debug(arg: any);
/**
* used for logging error messages
*
* @param {any} arg
*/
export function error(arg: any);
/**
* used for logging info messages
*
* @param {any} arg
*/
export function info(arg: any);
/**
* used for logging prompt messages
*
* @param {any} arg
*/
export function prompt(arg: any);
/**
* `setColor` method is used for turning colors on and off
*
* @param {boolean} color - it accepts a boolean value
*/
export function setColor(color: boolean): void;
/**
* used for logging your terminal output in `ps-logger.log` file
*
* use this method only once it will work globally to output all your logs in log file
*
* @param {boolean} fileLogging - it accepts a boolean value
* @default - false
*
* @param {string} fileName - it accepts a string value for file name,don't add extensions
* @default - "ps-logger.log"
*/
export function logToFile(fileLogging: boolean, fileName: string): void;
/**
* used for logging silly messages
*
* @param {any} arg
*/
export function silly(arg: any);
/**
* used for logging verbose messages
*
* @param {any} arg
*/
export function verbose(arg: any);
/**
* used for logging warn messages
*
* @param {any} arg
*/
export function warn(arg: any);