shopper
Version:
plug shopify into any website
9 lines (8 loc) • 372 B
TypeScript
import { CartItem, ShopperState, ShopperActions, ShopperGetters } from "../interfaces";
export declare function prepareActions({ state, update, getters, checkout, defaultQuantityMax, }: {
update: () => void;
state: ShopperState;
getters: ShopperGetters;
defaultQuantityMax: number;
checkout: (items: CartItem[]) => Promise<string>;
}): ShopperActions;