Type alias SuccessResponse

SuccessResponse: {
    data: Record<string, any>;
    errors: APIError[];
    success: boolean;
}

Type declaration

  • data: Record<string, any>

    For non-error scenarios, holds the API response data

  • errors: APIError[]

    If the operation was not successful, holds the deatils of errors

  • success: boolean

    Indicates whether the operation was successful or not