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

Home > @vue-storefront/core > ReviewGetters

ReviewGetters interface

Signature:

export interface ReviewGetters<REVIEW, REVIEW_ITEM> 

Properties

Property Modifiers Type Description
getAverageRating (review: REVIEW) => number
getItems (review: REVIEW) => REVIEW_ITEM[]
getRatesCount (review: REVIEW) => AgnosticRateCount[]
getReviewAuthor (item: REVIEW_ITEM) => string
getReviewDate (item: REVIEW_ITEM) => string
getReviewId (item: REVIEW_ITEM) => string
getReviewMessage (item: REVIEW_ITEM) => string
getReviewRating (item: REVIEW_ITEM) => number
getReviewsPage (review: REVIEW) => number
getTotalReviews (review: REVIEW) => number