@qbcart/eshop-inventory-hooks
Version:
Types to hooks for querying inventory data from LocalDB.
16 lines (15 loc) • 507 B
TypeScript
/**
* @license
* Copyright (c) 2021 QBCart Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source repo.
*/
import type { ItemInventory } from '@qbcart/types';
/**
* Hook for retrieving subproducts from LocalDB.
* @param {string} path - Path of parent category.
* @return An array of subproducts to be used.
*/
declare const useSubproducts: (path: string) => ItemInventory[];
export default useSubproducts;