UNPKG

@qbcart/eshop-cart-hooks

Version:

Type to hooks for manipulating the shopping cart across the QBCart EShop ecosystem.

14 lines (13 loc) 435 B
/** * @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. */ /** * Hook for reporting a subtotal. * @return A function for reporting a subtotal. */ declare const useReportSubtotal: () => (id: string, amount: number, quantity: number) => Promise<boolean>; export default useReportSubtotal;