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

Home > @vue-storefront/core > WishlistGetters

WishlistGetters interface

Signature:

export interface WishlistGetters<WISHLIST, WISHLIST_ITEM> 

Properties

Property Modifiers Type Description
getFormattedPrice (price: number) => string
getItemAttributes (wishlistItem: WISHLIST_ITEM, filters?: Array<string>) => Record<string, AgnosticAttribute | string>
getItemImage (wishlistItem: WISHLIST_ITEM) => string
getItemName (wishlistItem: WISHLIST_ITEM) => string
getItemPrice (wishlistItem: WISHLIST_ITEM) => AgnosticPrice
getItems (wishlist: WISHLIST) => WISHLIST_ITEM[]
getItemSku (wishlistItem: WISHLIST_ITEM) => string
getTotalItems (wishlist: WISHLIST) => number
getTotals (wishlist: WISHLIST) => AgnosticTotals