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

2 lines (1 loc) 103 B
export declare const simpleFetch: <T>(url: string, requestHeaders?: HeadersInit) => Promise<T | null>;