UNPKG

mysterium-tequilapi

Version:
29 lines (27 loc) 729 B
// @flow /** * Flowtype definitions for tequilapi-error * Generated by Flowgen from a Typescript Definition * Flowgen v1.5.8 * Author: [Joar Wilk](http://twitter.com/joarwilk) * Repo: http://github.com/joarwilk/flowgen */ export interface AxiosError { message: string; response?: { status: number }; code?: string; } declare export default class TequilapiError mixins Error { name: string; _originalError: AxiosError; constructor(originalError: Error, path: string): this; isTequilapiError: boolean; code: string | void; isTimeoutError: boolean; isRequestClosedError: boolean; isServiceUnavailableError: boolean; isNotFoundError: boolean; _hasHttpStatus(expectedStatus: number): boolean; }