Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Config

Config: Partial<{ apiUrl: string; httpClientConfig: KyOptions; storageUrl: string }>

Functions

appendAsLastBeforeRequest

  • appendAsLastBeforeRequest(hookToSchedule: BeforeRequestHook): BeforeRequestHook
  • Attaches a hook to end of hooks.beforeRequest (incl. after one-off hooks specified in the call to fetch(), e.g. setExpectedStatus)

    Parameters

    • hookToSchedule: BeforeRequestHook

    Returns BeforeRequestHook

dontCloneForAfterResponses

  • dontCloneForAfterResponses(): BeforeRequestHook

setExpectedStatus

  • setExpectedStatus(status: number): BeforeRequestHook
  • Parameters

    • status: number

    Returns BeforeRequestHook

Generated using TypeDoc