Alokai
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
) => MethodConfig

Parameters

NameRequiredTypeDescription
requestConfigRequiredRequestConfig

Referenced Types

Examples

Usage

import { prepareConfig } from "@vue-storefront/sdk";

const products = sdk.commerce.getProducts(params, prepareConfig({ method: "GET" }));

On this page