UNPKG

@scayle/storefront-nuxt

Version:

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

10 lines (9 loc) 880 B
import type { MaybeRefOrGetter } from 'vue'; import type { KeysOf, NormalizedRpcResponse, UseRpcOptions, UseRpcReturn, UseRpcCacheKey } from '../core/useRpc.js'; import type { RpcMethodParameters } from '@scayle/storefront-core'; type UseCategoriesBaseReturn<DataT, PickKeys extends KeysOf<DataT>, DefaultT> = Awaited<UseRpcReturn<'getCategoryTree', DataT, PickKeys, DefaultT>> & Promise<Awaited<UseRpcReturn<'getCategoryTree', DataT, PickKeys, DefaultT>>>; export declare function useCategoryTree<DataT = NormalizedRpcResponse<'getCategoryTree'>, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = null>({ params, options, }?: Partial<{ params: MaybeRefOrGetter<RpcMethodParameters<'getCategoryTree'>>; options: UseRpcOptions<'getCategoryTree', DataT, PickKeys, DefaultT>; }>, key?: UseRpcCacheKey): UseCategoriesBaseReturn<DataT, PickKeys, DefaultT>; export {};