Skip to content

Commit

Permalink
fixed example-app compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gbuomprisco committed Nov 12, 2017
1 parent 08f4cdc commit 707eda7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
12 changes: 9 additions & 3 deletions example-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"@types/reflect-metadata": "0.0.5",
"codelyzer": "~3.2.0",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
Expand Down
6 changes: 3 additions & 3 deletions example-app/src/app/todos/todo.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import { createTodo } from './create-todo';

export class TodoReducer {
@Action
createTodo(state: Todo[], action: CreateTodoAction): Todo[] {
public createTodo(state: Todo[], action: CreateTodoAction): Todo[] {
return [ ...state, createTodo(action.payload)]
}

@Action
markDone(state: Todo[], action: MarkTodoDoneAction): Todo[] {
public markDone(state: Todo[], action: MarkTodoDoneAction): Todo[] {
return state.map(todo => {
return todo.id === action.payload ? { ...todo, done: true } : todo
});
}

@Action
archiveTodo(state: Todo[], action: ArchiveTodoAction): Todo[] {
public archiveTodo(state: Todo[], action: ArchiveTodoAction): Todo[] {
return state.filter(todo => todo.id !== action.payload);
}
}
Expand Down
4 changes: 3 additions & 1 deletion example-app/src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": []
"types": [
"reflect-metadata"
]
},
"exclude": [
"test.ts",
Expand Down

0 comments on commit 707eda7

Please sign in to comment.