You are reading the documentation for legacy, which is no longer the latest version. Switch to connect v2
prepareConfig
Prepare the config for the request. It's used to differentiate the method config from the params.
Signature
prepareConfig: (
requestConfig: RequestConfig
) => MethodConfigParameters
| Name | Required | Type | Description |
|---|---|---|---|
requestConfig | Required | RequestConfig |
Referenced Types
Examples
Usage
import { prepareConfig } from "@vue-storefront/sdk";
const products = sdk.commerce.getProducts(params, prepareConfig({ method: "GET" }));