Interface PostsHandler<R>

Interface for handling paginated blog posts.

interface PostsHandler<R> {
    categories: string[];
    total: number;
    page(this: PostsHandler<R>, page: number): Promise<FeedResult<"posts", 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

categories: string[]

The categories with which the posts has been tagged.

1.2

total: number

The total number of entries available in the blog feed.

Methods