@nacelle/react-hooks
Version:
Custom convenience hooks for use when building apps with Nacelle
9 lines (8 loc) • 342 B
TypeScript
import { CartItem } from '../../common/types';
import { CartState, UpdateItemAction } from '~/hooks/use-cart/use-cart.types';
declare const updateItem: UpdateItemFunction;
export default updateItem;
export declare type UpdateItemFunction = (state: CartState, action: UpdateItemAction) => {
cart: CartItem[];
show: boolean;
};