mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
redux-logger: add diff and diffPredicate options. (#9697)
This commit is contained in:
committed by
Masahiro Wakame
parent
27896d899d
commit
13bf10021b
@@ -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({
|
||||
|
||||
Vendored
+2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user