Guest User

Untitled

a guest
Apr 11th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import { buildAction } from 'typesafe-actions';
  2.  
  3. export const authActions = {
  4. getLoggedUser: buildAction('GET_LOGGED_USER').empty(),
  5. fetchAuth: buildAction('AUTH').async<
  6. {
  7. pending: boolean
  8. email: string,
  9. password: string
  10. },
  11. {
  12. pending: boolean,
  13. logged: boolean,
  14. token: string,
  15. refreshToken: string,
  16. email: string,
  17. username: string,
  18. id: string,
  19. },
  20. {
  21. show: boolean,
  22. type: string,
  23. message: string
  24. }
  25. >()
  26. };
Add Comment
Please, Sign In to add comment