Interface HandlesApiResponse

Interface prescribes what's expected to be implemented by an object that is used for handling the requests.

Hierarchy

  • HandlesApiResponse

Implemented by

Properties

Properties

handle: (<T>(promise) => Promise<T>)

Type declaration

    • <T>(promise): Promise<T>
    • Handle the promised response.

      Type Parameters

      • T = unknown

      Parameters

      • promise: Promise<ApiResponse<null | string | any[] | Record<string, any>>>

      Returns Promise<T>

Generated using TypeDoc