QueueRequest
import { QueueRequest } from "@hyper-fetch/react"
Description
Defined in hooks/use-queue/use-queue.types.ts:7
Preview
type QueueRequest<Request> = QueueElementType<Request> & { deleteRequest: () => void; downloading?: ProgressType; startRequest: () => void; stopRequest: () => void; uploading?: ProgressType };
Structure
{
request: Request;
requestId: string;
retries: number;
stopped: boolean;
timestamp: number;
deleteRequest: () => void;
downloading: {
loaded: number;
progress: number;
sizeLeft: number;
startTimestamp: number;
timeLeft: number | null;
total: number;
};
startRequest: () => void;
stopRequest: () => void;
uploading: {
loaded: number;
progress: number;
sizeLeft: number;
startTimestamp: number;
timeLeft: number | null;
total: number;
};
}