create-react-app-ts
Version:
Scalable starter boilerplate for React applications
20 lines (17 loc) • 369 B
text/typescript
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>;
}