Application Load

IProductFeedbackReactionResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProductFeedbackReactionResponse

Updated likes and dislikes counters.

src/lib/interfaces/orionplace/products/IProductFeedbackApi.ts
TypeScript
export interface IProductFeedbackReactionResponse {
  // Field and general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // Updated `likes` and `dislikes` counters.
  page_data: {
    // Like count after the operation.
    likes: number;
    // Dislike count after the operation.
    dislikes: number;
  } | null;
}