/** Standardized cursor page — every list-shaped connector method returns this. */ export interface Page { items: T[]; nextCursor?: C; } export function emptyPage(): Page { return { items: [] }; } export function pageOf(items: T[], nextCursor?: string): Page { return nextCursor === undefined ? { items } : { items, nextCursor }; }