redux-logger: add diff and diffPredicate options. (#9697)

This commit is contained in:
Artur Eshenbrener
2016-06-19 12:38:47 +09:00
committed by Masahiro Wakame
parent 27896d899d
commit 13bf10021b
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ let loggerSimpleOpts = createLogger({
predicate: (getState, action) => true,
stateTransformer: (state) => state,
actionTransformer: (action) => action,
errorTransformer: (error) => error
errorTransformer: (error) => error,
diff: true,
diffPredicate: (getState, action) => true,
});
let loggerCollapsedBool = createLogger({
+2
View File
@@ -40,6 +40,8 @@ declare module 'redux-logger' {
stateTransformer?: (state: any) => any;
actionTransformer?: (action: any) => any;
errorTransformer?: (error: any) => any;
diff?: boolean;
diffPredicate?: LoggerPredicate;
}
// Trickery to get TypeScript to accept that our anonymous, non-default export is a function.