mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[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:
committed by
Mohamed Hegazy
parent
2fe87f6f25
commit
b2b4c4059b
Vendored
+2
-1
@@ -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;
|
||||
|
||||
@@ -26,6 +26,10 @@ let loggerCollapsedPredicate = createLogger({
|
||||
collapsed: (getAction, action) => true
|
||||
});
|
||||
|
||||
let loggerColorsOverallBoolean = createLogger({
|
||||
colors: false
|
||||
});
|
||||
|
||||
let loggerColorsBoolean = createLogger({
|
||||
colors: {
|
||||
title: false,
|
||||
|
||||
Reference in New Issue
Block a user