export type BimerError = { ErrorMessage: string; ErrorCode?: string; PossibleCause?: string; StackTrace?: string; }; type BimerPagination = { Limite: number; Pagina: number; TotalPagina: number; Total: number; }; export type BimerResFail = { Erros: { 0: BimerError } & BimerError[]; ListaObjetos: []; }; export type BimerResSuccess = { Erros: []; ListaObjetos: { 0: T } & T[]; }; export type BimerRes = | { Paginacao?: BimerPagination } & (BimerResSuccess | BimerResFail);