Skip to content

Type Alias: FetchOptionsDefault

FetchOptionsDefault = Omit<FetchOptionsInterceptor, "abortCtrl" | "as" | "body" | "method" | "signal" | "timeout" | "headers"> & object

Defined in: packages/fetch/src/types/options.ts:106

Default fetch options

Type Declaration

headers

headers: HeadersInit

Request headers.

Deafult:

  • No default content type set when fetch() is directly invoked.
  • Content type "application/json" is used as the default for all createPostClient() derived functions (eg: fetch.post(), fetch.put()...),

timeout

timeout: number

Request timeout duration in milliseconds.

Default: 60_000