import { List } from 'immutable' ; import { Todo } from "../Todo" ; export class LoadTodosAction { constructor ( public todos ) { } } export class AddTodoAction { constructor ( public newTodo ) { } } export class ToggleTodoAction { constructor ( public todo ) { } } export class DeleteTodoAction { constructor ( public todo ) { } } export class StartBackendAction { constructor ( public message ) { } } export class EndBackendAction { constructor ( public message ) { } } export type Action = LoadTodosAction | AddTodoAction | ToggleTodoAction | DeleteTodoAction | StartBackendAction | EndBackendAction ;