FetchSendActionsType
import { FetchSendActionsType } from "@hyper-fetch/core"
Description
Defined in command/command.types.ts:252
Preview
type FetchSendActionsType<Command> = {
onDownloadProgress: (values: FetchProgressType, details: CommandEventDetails<Command>) => void;
onRemove: (details: CommandEventDetails<Command>) => void;
onRequestStart: (details: CommandEventDetails<Command>) => void;
onResponse: (response: ClientResponseType<ExtractResponse<Command>, ExtractError<Command>>, details: CommandResponseDetails) => void;
onResponseStart: (details: CommandEventDetails<Command>) => void;
onSettle: (requestId: string, command: Command) => void;
onUploadProgress: (values: FetchProgressType, details: CommandEventDetails<Command>) => void;
}
Structure
{
onDownloadProgress: (values: FetchProgressType, details: CommandEventDetails<Command>) => void;
onRemove: (details: CommandEventDetails<Command>) => void;
onRequestStart: (details: CommandEventDetails<Command>) => void;
onResponse: (response: ClientResponseType<ExtractResponse<Command>, ExtractError<Command>>, details: CommandResponseDetails) => void;
onResponseStart: (details: CommandEventDetails<Command>) => void;
onSettle: (requestId: string, command: Command) => void;
onUploadProgress: (values: FetchProgressType, details: CommandEventDetails<Command>) => void;
}