UNPKG

create-react-app-ts

Version:

Scalable starter boilerplate for React applications

20 lines (17 loc) 369 B
import { AuthActionType } from './enums'; export interface AuthState { token: string; locale: string; loading: boolean; threshold: number; loginError: string; logoutError: string; signupError: string; refreshToken: string; passwordResetError: string; [x: string]: any; } export interface AuthAction { type: AuthActionType; payload?: Partial<AuthState>; }