@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
20 lines (18 loc) • 417 B
Flow
/**
* Flowtype definitions for response
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
import { Either } from "../helpers/types";
export type ApiResponseError = {
status: number,
message: string,
responseData: mixed,
...
};
export type ApiResponseSuccess<T> = {
status: number,
data: T,
...
};
export type ApiResponse<T> = Either<ApiResponseError, ApiResponseSuccess<T>>;