Skip to main content
Version: v8.0.0

createSdk


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

Parameters

createSdk<Client, RecursiveSchema>(client: Client, options: CreateSdkOptions<RecursiveSchema>)
Parameters
NameTypeDescription
client
Client
options
CreateSdkOptions<RecursiveSchema>

Returns

type SdkInstance<Schema> = Schema & { $configure: (defaults: SdkConfigurationMap<Schema>) => SdkInstance<Schema> };
createSdk
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.