Application Load

IBlogCommentsResponse

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

IBlogCommentsResponse

page_data.data contains comments without nested replies. page_data.rpag contains pagination data.

src/lib/interfaces/orionplace/blog/IBlogApi.ts
TypeScript
export interface IBlogCommentsResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Flat comment array and pagination.
  page_data: {
    // Value of data.
    data: IBlogComment[];
    // Pagination metadata, default 20 and maximum 50 items per page.
    rpag: IApiPagination;
  } | null;
}