UNPKG

simple-fetch-ts

Version:

`simple-fetch-ts` is a TypeScript library designed to simplify HTTP requests using a builder-pattern approach. It provides a fluent API for creating, configuring, and executing various HTTP methods (`GET`, `POST`, `PUT`, `PATCH`, `DELETE`) with type safet

3 lines (2 loc) 176 B
import { SimpleResponse } from "../../types"; export declare const tsFetch: <T>(url: string, requestHeaders?: HeadersInit, signal?: AbortSignal) => Promise<SimpleResponse<T>>;