Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.43 KB

@happy-ts/fetch-tDocs


@happy-ts/fetch-t

Classes

Class Description
FetchError Represents an error that occurred during a fetch operation when the response is not ok.

Interfaces

Interface Description
FetchInit Extends the standard RequestInit interface from the Fetch API to include additional custom options.
FetchProgress Represents the progress of a fetch operation.
FetchTask Defines the structure and behavior of a fetch task, including the ability to abort the task and check its status.

Type Aliases

Type alias Description
FetchResponse Represents the response of a fetch operation, encapsulating the result data or any error that occurred.
FetchResponseType Specifies the expected response type of the fetch request.

Variables

Variable Description
ABORT_ERROR Name of abort error;
TIMEOUT_ERROR Name of timeout error;

Functions

Function Description
fetchT Fetches a resource from the network as a text string and returns a FetchTask representing the operation.