Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 17, 2017 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/6b0ec5a023dea7d889c35ceb06db314a to your computer and use it in GitHub Desktop.
Save matthieu-D/6b0ec5a023dea7d889c35ceb06db314a to your computer and use it in GitHub Desktop.
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