Skip to content

Commit d2584b1

Browse files
committed
style: adjust few stylings of logger plugin
1 parent 18be128 commit d2584b1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist/logger.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
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

64
import { 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

1917
export default function createLogger<S>(option?: LoggerOption<S>): Plugin<S>;

src/plugins/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 => {

0 commit comments

Comments
 (0)