Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResponseSdk<T>

This ResponseSdk interface helps us standardize all responses If this is correct, it will not return the data and if not, it will return the corresponding error. Example structure:

export interface ResponseSdk<T> {
data: T | null;
error: ApiError | null;
}

Type Parameters

  • T

Hierarchy

  • ResponseSdk

Index

Properties

Properties

data: null | T
error: null | ApiError

Generated using TypeDoc