Skip to content

Instantly share code, notes, and snippets.

@brakmic
Created April 11, 2017 07:52
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 brakmic/40707d0b29f8cc27ef680b8140e4b515 to your computer and use it in GitHub Desktop.
Save brakmic/40707d0b29f8cc27ef680b8140e4b515 to your computer and use it in GitHub Desktop.
declare a set of actions
export interface ICustomerActions {
INIT: string;
INIT_FAILED: string;
INITIALIZED: string;
SELECTED: string;
CHANGED: string;
SAVED: string;
DELETED: string;
}
export const CustomerActionTypes: ICustomerActions = {
INIT: type(`${CATEGORY} Customer Init`),
INIT_FAILED: type(`${CATEGORY} Customer Init Failed`),
INITIALIZED: type(`${CATEGORY} Customer Initialized`),
SELECTED: type(`${CATEGORY} Customer Selected`),
CHANGED: type(`${CATEGORY} Customer Changed`),
DELETED: type(`${CATEGORY} Customer Deleted`),
SAVED: type(`${CATEGORY} Customer Saved`)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment