chore: initialize from frontend template 4dc033c
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import type { Result } from "../application/result.ts";
|
||||
|
||||
export type CursorPage<Value> = Readonly<{
|
||||
items: readonly Value[];
|
||||
nextCursor: string | null;
|
||||
hasMore: boolean;
|
||||
snapshotToken: string | null;
|
||||
}>;
|
||||
|
||||
export type CursorPaginationProfile = Readonly<{
|
||||
profileId: string;
|
||||
maxPages: number;
|
||||
maxTotalItems: number;
|
||||
maxEstimatedBytes: number;
|
||||
maxCursorBytes: number;
|
||||
allowSparsePage: boolean;
|
||||
}>;
|
||||
|
||||
export type CursorPaginationRuntime<Value> = Readonly<{
|
||||
loadAll(context: Readonly<{ signal?: AbortSignal }>): Promise<
|
||||
Result<readonly Value[]>
|
||||
>;
|
||||
}>;
|
||||
Reference in New Issue
Block a user