Created
January 20, 2018 12:12
-
-
Save andrei-cacio/b91c1c42360ebb4299d30c1ec132cbb4 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 EventEmitter2 from 'eventemitter2'; | |
const appBus = new eventEmitter(); | |
const EVENTS = { | |
AUTH: { | |
SUCCESS: 'AUTH.SUCCESS', | |
FAILED: 'AUTH.FAILED', | |
ATTEMPT: 'AUTH.ATTEMPT', | |
}; | |
export EVENTS; | |
export default appBus; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment