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.
5
3
6
4
import { Payload , Plugin } from "../types/index" ;
7
5
@@ -12,8 +10,8 @@ export interface LoggerOption<S> {
12
10
mutationTransformer ?: < P extends Payload > ( mutation : P ) => any ;
13
11
actionFilter ?: < P extends Payload > ( action : P , state : S ) => boolean ;
14
12
actionTransformer ?: < P extends Payload > ( action : P ) => any ;
15
- logActions ?: boolean ;
16
13
logMutations ?: boolean ;
14
+ logActions ?: boolean ;
17
15
}
18
16
19
17
export 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 ({
9
9
mutationTransformer = mut => mut ,
10
10
actionFilter = ( action , state ) => true ,
11
11
actionTransformer = act => act ,
12
- logActions = true ,
13
12
logMutations = true ,
13
+ logActions = true ,
14
14
logger = console
15
15
} = { } ) {
16
16
return store => {
You can’t perform that action at this time.
0 commit comments