Type alias RequestApiResult<T>

RequestApiResult<T>: {
    success: true;
    value: T;
} | {
    err: Error;
    success: false;
}

An API result container.

Type Parameters

  • T

Type declaration

  • success: true
  • value: T

Type declaration

  • err: Error
  • success: false