Created
April 11, 2017 07:52
-
-
Save brakmic/40707d0b29f8cc27ef680b8140e4b515 to your computer and use it in GitHub Desktop.
declare a set of 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 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