forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole-stamp.d.ts
46 lines (38 loc) · 1.16 KB
/
console-stamp.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 definitions for console-stamp 0.2.0
// Project: https://github.com/starak/node-console-stamp
// Definitions by: Eric Byers <https://github.com/ericbyers/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'console-stamp' {
function consoleStamp(console:{}, options?: {
/**
* A string with date format based on Javascript Date Format
*/
pattern?: string
/**
* If true it will show the label (LOG | INFO | WARN | ERROR)
*/
label?: boolean;
/**
* An array containing the methods to include in the patch
*/
include?: any;
/**
* An array containing the methods to exclude in the patch)
*/
exclude?: any;
/**
* Types can be String, Object (interpreted with util.inspect), or Function. See the test-metadata.js for examples.
* Note that metadata can still be sent as the third parameter (as in vesion 1.6) as a backward compatibillity feature, but this is deprecated.
*/
metadata?: any;
/**
* An object representing a color theme. More info https://www.npmjs.com/package/colors
*/
colors?: {
stamp?: any;
label?: any;
metadata?: any;
};
}): void;
export = consoleStamp;
}