fn
createFetch
v0.0.1Creates a configured $fetch instance
Signature
ts
export function createFetch<Plugins extends readonly FetchPlugin[] = []>(
globalOptions: CreateFetchOptions<Plugins> ={ ... }Type Parameters
Pluginsextends readonly FetchPlugin[]= []Parameters
| Parameter | Type | Description |
|---|---|---|
globalOptions? | CreateFetchOptions<Plugins> | Global defaults, custom fetch implementation, and plugins |
Returns
$Fetch<Plugins>Configured fetch instance