Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AsyncHookCallbackContract<T>

Async hook callback

Extends the return type defined by useAsyncCallback.

For more information about useAsyncCallback:

see

react-async-hook documentation

Type parameters

  • T

    Return type in the result attribute, e.g. a Nation

Hierarchy

Index

Properties

Optional error

error: ApiError | Error

execute

execute: (...args: any[]) => Promise<T>

Type declaration

    • (...args: any[]): Promise<T>
    • Parameters

      • Rest ...args: any[]

      Returns Promise<T>

loading

loading: boolean

Optional result

result: T

Generated using TypeDoc