UNPKG

@yoroi/types

Version:
20 lines (18 loc) 417 B
/** * 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>>;