You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UseWishlistFactoryParams > addItem

UseWishlistFactoryParams.addItem property

Signature:

addItem: (context: Context, params: {
        currentWishlist: WISHLIST;
        product: PRODUCT;
        customQuery?: CustomQuery;
    }) => Promise<WISHLIST>;