{"library":"ts-fetch","type":"library","category":null,"description":"A lightweight, type-safe wrapper around the native fetch API that uses TypeScript generics to enforce request and response types. Version 1.1.4 is the latest stable release. It provides opinionated defaults (JSON encoding/decoding, status code validation, timeouts) while allowing full customization. Compared to alternatives like axios or ky, ts-fetch focuses on simplicity and type safety without additional dependencies, returning a discriminated union for success/error/network-error states. The package ships with TypeScript definitions and has a small footprint, suitable for projects wanting typed HTTP requests without heavy abstraction.","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ts-fetch","imports":["import { request } from 'ts-fetch'","import type { RequestParams } from 'ts-fetch'","const { request } = require('ts-fetch')"]},{"cmd":"yarn add ts-fetch","imports":[]},{"cmd":"pnpm add ts-fetch","imports":[]}],"homepage":"https://github.com/erik-beus/ts-fetch","github":"https://github.com/erik-beus/ts-fetch","docs":null,"changelog":null,"pypi":null,"npm":"ts-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}