Skip to main content
Version: v8.0.0

SdkInstance


Import
import { SdkInstance } from "@hyper-fetch/core"

Preview

type SdkInstance<Schema> = Schema & { $configure: (defaults: SdkConfigurationMap<Schema>) => SdkInstance<Schema> };

Structure

SdkInstance
NameTypeDescription
$configure
(defaults: SdkConfigurationMap<Schema>) => SdkInstance<Schema>

Apply request defaults to the SDK. Returns a new SDK instance with the configuration applied. Use "*" to match all endpoints, or specific endpoint strings / wildcard patterns.