Suncel home pageSuncel logoSuncel v1.1
  1. Introduction

API > Introduction

API Introduction

This part introduces all the fetching data utilities provided by the package.

Return format

All the functions in this section share the same return format.

interface RequestError {
  error: string;
  message: string | string[];
  statusCode: number;
}

interface RequestResult<ResultType> {
  data: null | ResultType;
  error: null | RequestError;
}