Skip to main content
Home
This release is 6 versions behind 0.4.3 — the latest version of @zap-studio/fetch. Jump to latest
Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score94%
Downloads5/wk
Published2 months ago (0.2.2)

A type-safe fetch wrapper with Standard Schema validation.

f
$fetch

Type-safe fetch wrapper with Standard Schema validation.

v
api

Convenience methods for common HTTP verbs.

f
createFetch

Creates a custom fetch instance with pre-configured defaults.

c
FetchError

Error thrown for HTTP errors (non-2xx responses)

c
ValidationError

Error thrown for validation errors

T
$Fetch

Type-safe fetch function with Standard Schema validation support

T
ApiMethods

API HTTP method-specific fetch functions

T
CreateFetchOptions

Options for creating a custom fetch instance with createFetch

T
ExtendedRequestInit

Extended RequestInit type to include custom fetch options

T
f
isStandardSchema

Type guard to check if a value is a Standard Schema schema

f
standardValidate

Helper function to validate data using Standard Schema

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.