Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { buildAction } from 'typesafe-actions';
- export const authActions = {
- getLoggedUser: buildAction('GET_LOGGED_USER').empty(),
- fetchAuth: buildAction('AUTH').async<
- {
- pending: boolean
- email: string,
- password: string
- },
- {
- pending: boolean,
- logged: boolean,
- token: string,
- refreshToken: string,
- email: string,
- username: string,
- id: string,
- },
- {
- show: boolean,
- type: string,
- message: string
- }
- >()
- };
Add Comment
Please, Sign In to add comment