Interface CommentsHandler<R>

Interface for handling paginated blog comments.

interface CommentsHandler<R> {
    total: number;
    page(this: CommentsHandler<R>, page: number): Promise<FeedResult<"comments", R, EntriesResult<PostEntrySummary, PostsBlogSummary>, {
        entries: CommentEntrySummary[];
        blog: CommentsBlogSummary;
    }, {
        entries: PageEntrySummary[];
        blog: PagesBlogSummary;
    }, EntriesResult<PostEntry, PostsBlog>, {
        entries: CommentEntry[];
        blog: CommentsBlog;
    }, {
        entries: PageEntry[];
        blog: PagesBlog;
    }>>;
}

Type Parameters

Hierarchy (view full)

Properties

Methods

Properties

total: number

The total number of entries available in the blog feed.

Methods