Interface HandlesApiResponse
Properties
handle
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>
-
Parameters
-
promise: Promise<ApiResponse<null | string | any[] | Record<string, any>>>
Returns Promise<T>
Interface prescribes what's expected to be implemented by an object that is used for handling the requests.