R
fn

createFetch

v0.0.1

Creates a configured $fetch instance

Signature

ts
export function createFetch<Plugins extends readonly FetchPlugin[] = []>(
  globalOptions: CreateFetchOptions<Plugins> ={ ... }

Type Parameters

Pluginsextends readonly FetchPlugin[]= []

Parameters

ParameterTypeDescription
globalOptions?CreateFetchOptions<Plugins>Global defaults, custom fetch implementation, and plugins

Returns

$Fetch<Plugins>Configured fetch instance