@scayle/storefront-nuxt
Version:
Nuxt integration for the SCAYLE Commerce Engine and Storefront API
13 lines (12 loc) • 642 B
TypeScript
import type { PublicShopConfig } from '../../types/module.js';
/**
* Provides a reactive list of available shops.
*
* This composable uses [`useState`](https://nuxt.com/docs/api/composables/use-state)
* to create a reactive state variable that holds an array of `PublicShopConfig` objects.
* The initial value of the state is an empty array. This state can be used to
* dynamically display data of the available shops within the application.
*
* @returns A reactive `ref` containing an array of available shop configurations.
*/
export declare function useAvailableShops(): import("vue").Ref<PublicShopConfig[], PublicShopConfig[]>;