Source

types/APIResponseType.ts

/**
 * @description Generic type for response on Myria services
 * @typedef {Object} APIResponseType
 * @property {string} status Status response from Myria's API (success/failed)
 * @property {T} data Generic data
 */
export interface APIResponseType<T> {
  status: string,
  data: T
}