PitchKit
API Reference@pitchkit/data-providersindexInterfaces

LoadOptions

Defined in: packages/data-providers/src/fetch-json.ts:4

Extended by

Properties

PropertyModifierTypeDescriptionDefined in
fetch?readonly{ (input, init?): Promise<Response>; (input, init?): Promise<Response>; }Fetch implementation to use instead of the global one. Injecting is how this package's own tests avoid touching the network, and it's the hook for a Next.js caching wrapper or a Node agent with a proxy configured.packages/data-providers/src/fetch-json.ts:10
signal?readonlyAbortSignalForwarded to the underlying request, so callers can cancel a slow load.packages/data-providers/src/fetch-json.ts:12

On this page