Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Bashta authored and Vitalii Bashta committed Jan 30, 2020
1 parent f59e71b commit f8bdd7e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"e2e": "ng e2e",
"lint": "ng lint",
"stylelint": "./node_modules/.bin/stylelint **/*.scss",
"linthtml": "htmllint **/*.html",
"linthtml": "htmllint src/app/**/*.html",
"stats": "ng build --prod --stats-json && npx webpack-bundle-analyzer dist/ngrx-test/stats-es2015.json"
},
"husky": {
Expand Down
8 changes: 4 additions & 4 deletions src/app/counter.actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createAction } from '@ngrx/store';
import { createAction, ActionCreator } from '@ngrx/store';

export const increment = createAction('[Counter Component] Increment');
export const decrement = createAction('[Counter Component] Decrement');
export const reset = createAction('[Counter Component] Reset');
export const increment: any = createAction('[Counter Component] Increment');
export const decrement: any = createAction('[Counter Component] Decrement');
export const reset: any = createAction('[Counter Component] Reset');
10 changes: 5 additions & 5 deletions src/app/counter.reducer.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { createReducer, on } from '@ngrx/store';
import { increment, decrement, reset } from './counter.actions';

export const initialState = 0;
export const initialState: number = 0;

const _countReducer = createReducer(
const _countReducer: any = createReducer(
initialState,
on(increment, state => state + 1),
on(decrement, state => state - 1),
on(increment, (state: any) => state + 1),
on(decrement, (state: any) => state - 1),
on(reset, () => 0),
);

export function countReducer(state, action) {
export function countReducer(state: any, action: any): any {
return _countReducer(state, action);
}

0 comments on commit f8bdd7e

Please sign in to comment.