@qbcart/eshop-inventory-hooks
Version:
Types to hooks for querying inventory data from LocalDB.
16 lines (15 loc) • 590 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 top level subcategories or child subcategories from LocalDB.
* @param {string} path - Path of parent category if any.
* @return An array of top level subcategories or child subcategories to be used. /
*/
declare const useSubcategories: (path: string) => ItemInventory[];
export default useSubcategories;