[redux-logger] Allowing color configuration to be false (#19978)

* Allowing color configuration to be false

* Added test for overall color boolean
This commit is contained in:
Kevin Groat
2017-09-25 17:04:16 -07:00
committed by Mohamed Hegazy
parent 2fe87f6f25
commit b2b4c4059b
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for redux-logger v3.0.0
// Project: https://github.com/fcomb/redux-logger
// Definitions by: Alexander Rusakov <https://github.com/arusakov>
// Kevin Groat <https://github.com/kgroat>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace ReduxLogger;
@@ -34,7 +35,7 @@ export interface ReduxLoggerOptions {
level?: string | ActionToString | LevelObject;
duration?: boolean;
timestamp?: boolean;
colors?: ColorsObject;
colors?: ColorsObject | false;
logger?: any;
logErrors?: boolean;
collapsed?: boolean | LoggerPredicate;
+4
View File
@@ -26,6 +26,10 @@ let loggerCollapsedPredicate = createLogger({
collapsed: (getAction, action) => true
});
let loggerColorsOverallBoolean = createLogger({
colors: false
});
let loggerColorsBoolean = createLogger({
colors: {
title: false,