# Interface: Config<T>
default.Config
# Type parameters
Name | Default |
---|---|
T | unknown |
# Table of contents
# Properties
# Properties
# abort
• Optional
abort: any
# data
• Optional
data: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>
# dump
• dump: (data
: T) => string
# Type declaration
▸ (data
: T): string
# Parameters
Name | Type |
---|---|
data | T |
Returns: string
# events
• Optional
events: object
# Type declaration
# headers
• headers: object
# Type declaration
# load
• load: (str
: string) => T
# Type declaration
▸ (str
: string): T
# Parameters
Name | Type |
---|---|
str | string |
Returns: T
# method
• method: "GET"
| "POST"
| "PUT"
| "DELETE"
| "PATCH"
| "OPTIONS"
| "HEAD"
# params
• Optional
params: string | URLSearchParams | string[][] | Record<string, string>
# promise
• promise: (fn
: () => Promise<unknown>) => Promise<unknown>
# Type declaration
▸ (fn
: () => Promise<unknown>): Promise<unknown>
# Parameters
Name | Type |
---|---|
fn | () => Promise<unknown> |
Returns: Promise<unknown>
# raw
• Optional
raw: boolean
# url
• Optional
url: string
# withCredentials
• withCredentials: boolean
# xmlHttpRequest
• xmlHttpRequest: () => XMLHttpRequest
# Type declaration
▸ (): XMLHttpRequest
Returns: XMLHttpRequest