Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Response

Hierarchy

  • Response

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Response(data: any, is_error: boolean, type: string, status_message: string): Response
  • Parameters

    • data: any
    • is_error: boolean
    • type: string
    • status_message: string

    Returns Response

Properties

data

data: any

status

status: "error" | "success"

status_message

status_message: string

type

type: string

Methods

Static fromError

  • fromError(sealious_error: SealiousError): { data: any; is_error: boolean; message: string; status_message: string; type: string }
  • Parameters

    Returns { data: any; is_error: boolean; message: string; status_message: string; type: string }

    • data: any
    • is_error: boolean
    • message: string
    • status_message: string
    • type: string

Generated using TypeDoc