function buildCursorPage
buildCursorPage<T>(
items: T[],
nextCursor?: string
): CursorPage<T>

Builds a CursorPage from items and an optional next cursor.

Type Parameters

Parameters

items: T[]

The items for the current page.

optional
nextCursor: string

Cursor clients can use to request the next page.

Return Type

Usage

import { buildCursorPage } from "trellis/index.ts";