@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
12 lines • 337 B
TypeScript
import { Either } from '../helpers/types';
export type ApiResponseError = {
status: number;
message: string;
responseData: unknown;
};
export type ApiResponseSuccess<T> = {
status: number;
data: T;
};
export type ApiResponse<T> = Either<ApiResponseError, ApiResponseSuccess<T>>;
//# sourceMappingURL=response.d.ts.map