File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- /**
2- * Types for the logger plugin.
3- * This file must be put alongside the JavaScript file of the logger.
4- */
1+ // Types for the logger plugin. This file must be put alongside the bundled
2+ // JavaScript file of the logger.
53
64import { Payload , Plugin } from "../types/index" ;
75
@@ -12,8 +10,8 @@ export interface LoggerOption<S> {
1210 mutationTransformer ?: < P extends Payload > ( mutation : P ) => any ;
1311 actionFilter ?: < P extends Payload > ( action : P , state : S ) => boolean ;
1412 actionTransformer ?: < P extends Payload > ( action : P ) => any ;
15- logActions ?: boolean ;
1613 logMutations ?: boolean ;
14+ logActions ?: boolean ;
1715}
1816
1917export default function createLogger < S > ( option ?: LoggerOption < S > ) : Plugin < S > ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export default function createLogger ({
99 mutationTransformer = mut => mut ,
1010 actionFilter = ( action , state ) => true ,
1111 actionTransformer = act => act ,
12- logActions = true ,
1312 logMutations = true ,
13+ logActions = true ,
1414 logger = console
1515} = { } ) {
1616 return store => {
You can’t perform that action at this time.
0 commit comments