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<ApiResponse<null | string | any[] | Record<string, any>>>) => Promise<T>)

Type declaration

    • <T>(promise: Promise<ApiResponse<null | string | any[] | Record<string, any>>>): Promise<T>
    • Handle the promised response.

      Returns

      Type Parameters

      Type Parameters

      • T = unknown

      Parameters

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

      Returns Promise<T>

Generated using TypeDoc