export interface ErrorHandling { error: string; details?: any; } export type IResponse = T | ErrorHandling;