Created
August 17, 2017 17:59
-
-
Save matthieu-D/6b0ec5a023dea7d889c35ceb06db314a 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 { Injectable } from '@angular/core'; | |
import { dispatch } from '@angular-redux/store'; | |
import { FluxStandardAction } from 'flux-standard-action'; | |
import { ColorAddPayload, ColorAddMetaData } from '../../app/color/color.model'; | |
export type ColorLoadAction = FluxStandardAction<null, null>; | |
export type ColorAddAction = FluxStandardAction<ColorAddPayload, ColorAddMetaData>; | |
export type ColorRemoveAction = FluxStandardAction<null, null>; | |
@Injectable() | |
export class ColorActions { | |
static readonly LOAD_COLORS = 'LOAD_COLORS'; | |
static readonly ADD_COLORS = 'ADD_COLORS'; | |
static readonly REMOVE_LAST_COLOR = 'REMOVE_LAST_COLOR'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment