Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
phpnode committed Feb 18, 2025
1 parent e344b58 commit a1f8599
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/seam/connect/seam-paginator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ export class SeamPaginator<
EnsureReadonlyArray<TResponse[TResponseKey]>
> {
let [current, pagination] = await this.first()
yield* current
for (const item of current) {
yield item
}
while (pagination.hasNextPage) {
;[current, pagination] = await this.fetch(pagination.nextPageCursor)
yield* current
for (const item of current) {
yield item
}
}
}

Expand Down

0 comments on commit a1f8599

Please sign in to comment.