Created
July 15, 2018 15:20
-
-
Save gsans/fb76065a1ed484505410d3153eb9520a to your computer and use it in GitHub Desktop.
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
import { Action } from '@ngrx/store'; | |
export enum CounterActionTypes { | |
Increment = '[Counter] Increment', | |
Decrement = '[Counter] Decrement', | |
Reset = '[Counter] Reset' | |
} | |
export class CounterIncrement implements Action { | |
readonly type = CounterActionTypes.Increment; | |
} | |
export class CounterDecrement implements Action { | |
readonly type = CounterActionTypes.Decrement; | |
} | |
export class CounterReset implements Action { | |
readonly type = CounterActionTypes.Reset; | |
constructor(public payload: { value: number }) { } | |
} | |
export type CounterActions = CounterIncrement | CounterDecrement | CounterReset; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment