refactor: download service (#16600)

This commit is contained in:
Jason Rasmussen
2025-03-05 08:38:23 -05:00
committed by GitHub
parent 56b85f7479
commit 2da9e3152b
8 changed files with 172 additions and 112 deletions

View File

@@ -10,6 +10,7 @@ export interface PaginationResult<T> {
export type Paginated<T> = Promise<PaginationResult<T>>;
/** @deprecated use `this.db. ... .stream()` instead */
export async function* usePagination<T>(
pageSize: number,
getNextPage: (pagination: PaginationOptions) => PaginationResult<T> | Paginated<T>,