This release is 6 versions behind 0.4.3 — the latest version of @zap-studio/fetch. Jump to latest
Works with
•JSR Score94%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




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
c
T
$Fetch
Type-safe fetch function with Standard Schema validation support
T
CreateFetchOptions
Options for creating a custom fetch instance with createFetch
T
ExtendedRequestInit
Extended RequestInit type to include custom fetch options
T
FetchDefaults
Internal defaults used by fetchInternal
f
isStandardSchema
Type guard to check if a value is a Standard Schema schema
f
standardValidate
Helper function to validate data using Standard Schema