@zap-studio/fetch@0.3.1
latest
zap-studio/monorepoA type-safe fetch wrapper with Standard Schema validation.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
94%
Published
a day ago (0.3.1)
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
T
SearchParams
Type representing various formats for search parameters that can be used in requests. Can be a URLSearchParams object, a record of string pairs, a query string, or an array of tuples.
f
isStandardSchema
Type guard to check if a value is a Standard Schema schema
f
standardValidate
Helper function to validate data using Standard Schema