UNPKG

@scayle/storefront-core

Version:

Collection of essential utilities to work with the Storefront API

16 lines (15 loc) 628 B
import type { ShopConfiguration } from '@scayle/storefront-api'; import type { RpcHandler } from '../../types'; /** * Retrieves the shop configuration. * * This function uses the Storefront cache (`cached()`) with a `get-shopConfigurations` key prefix to improve performance. * Cached entries are returned if found; otherwise, data is fetched and cached. * * @param context The RPC context. * * @returns The shop configuration. It will return an `ErrorResponse` alternatively * if the Storefront API request fails. */ declare const getShopConfiguration: RpcHandler<ShopConfiguration>; export { getShopConfiguration };