mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-16 22:40:01 +08:00
winston: add 'all', 'level' and 'message' as valid colorize values.
Supports https://github.com/winstonjs/winston/commit/72273b1 .
This commit is contained in:
8
types/winston/index.d.ts
vendored
8
types/winston/index.d.ts
vendored
@@ -272,7 +272,7 @@ declare namespace winston {
|
||||
|
||||
interface ConsoleTransportInstance extends TransportInstance {
|
||||
json: boolean;
|
||||
colorize: boolean;
|
||||
colorize: boolean | 'all' | 'level' | 'message';
|
||||
prettyPrint: boolean;
|
||||
timestamp: boolean | (() => string | boolean);
|
||||
showLevel: boolean;
|
||||
@@ -294,7 +294,7 @@ declare namespace winston {
|
||||
interface FileTransportInstance extends TransportInstance {
|
||||
json: boolean;
|
||||
logstash: boolean;
|
||||
colorize: boolean;
|
||||
colorize: boolean | 'all' | 'level' | 'message';
|
||||
maxsize: number|null;
|
||||
rotationFormat: boolean;
|
||||
zippedArchive: boolean;
|
||||
@@ -330,7 +330,7 @@ declare namespace winston {
|
||||
writeOutput: GenericTextTransportOptions[];
|
||||
|
||||
json: boolean;
|
||||
colorize: boolean;
|
||||
colorize: boolean | 'all' | 'level' | 'message';
|
||||
prettyPrint: boolean;
|
||||
timestamp: boolean | (() => string | boolean);
|
||||
showLevel: boolean;
|
||||
@@ -390,7 +390,7 @@ declare namespace winston {
|
||||
|
||||
interface GenericTextTransportOptions {
|
||||
json?: boolean;
|
||||
colorize?: boolean;
|
||||
colorize?: boolean | 'all' | 'level' | 'message';
|
||||
colors?: any;
|
||||
prettyPrint?: boolean;
|
||||
showLevel?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user