createSdk
Import
import { createSdk } from "@hyper-fetch/core"
Source
Package
Parameters
createSdk<Client, RecursiveSchema>(client: Client, options: CreateSdkOptions<RecursiveSchema>)
Parameters
| Name | Type | Description |
|---|---|---|
| client | | |
| options | |
Returns
type SdkInstance<Schema> = Schema & { $configure: (defaults: SdkConfigurationMap<Schema>) => SdkInstance<Schema> };
createSdk
| Name | Type | Description |
|---|---|---|
| $configure | | 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. |
