Last active
February 10, 2019 18:36
-
-
Save daveharmswebdev/7d747dfb4a62149af65a96fb4e291c42 to your computer and use it in GitHub Desktop.
Todo Ngrx Actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UpdateDescription implements Action { | |
readonly type = TodoActionTypes.UpdateDescription; | |
constructor(public payload: Update<ITodo>) {} | |
} | |
export class ToggleComplete implements Action { | |
readonly type = TodoActionTypes.ToggleComplete; | |
constructor(public payload: Update<ITodo>) {} | |
} | |
export class MarkAllAsComplete implements Action { | |
readonly type = TodoActionTypes.MarkAllAsComplete; | |
constructor(public payload: Update<ITodo>[]) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment