interface WishlistDataHolder {
  wishlistData: unknown
}

/**
 * Invoke the side-effectful `wishlistData` getter on a wishlist component
 * instance (refetch items, re-check access) via an explicit function call,
 * avoiding the bare-property-access no-op pattern at call sites.
 *
 * @since 1.0.4
 */
export function refreshWishlistData(component: WishlistDataHolder): unknown {
  return component.wishlistData
}
