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
9 lines (8 loc) • 322 B
TypeScript
export declare class SimpleFetchRequestError extends Error {
method: string;
url: string;
status?: number | undefined;
statusText?: string | undefined;
responseBody?: any;
constructor(method: string, url: string, status?: number | undefined, statusText?: string | undefined, responseBody?: any);
}