Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiResponse<T>

Contains the response of an API call. Either holds the generic result object or the error message.

Type parameters

  • T

Hierarchy

  • ApiResponse

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _data

_data: T | undefined

Private _error

_error: ErrorData | undefined

Accessors

data

  • get data(): T | undefined

error

Methods

isError

  • isError(): boolean
  • Returns boolean

    true if an error occurred. The error data can be found in response.error.

Generated using TypeDoc