export interface PrivateState { [index: string]: any; } export interface State { [index: string]: any; } export interface SuccessResponse { [index: string]: any; success: boolean; } export interface ErrorResponse { [index: string]: any; success: boolean; error: any; } export type Response = SuccessResponse | ErrorResponse