Application Load

ICartStateResponse

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

ICartStateResponse

Cart-state change result.

app/interfaces/orionplace/cart/ICartActions.ts
TypeScript
export interface ICartStateResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Resulting cart state.
  page_data: {
    // Resulting `ECartState` value.
    state: ECartState;
  } | null;
}