Skip to content

Commit

Permalink
fix(types): improve getNextPage() return type (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and Caleb Siu committed Aug 30, 2023
1 parent fb97629 commit eb7e51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
return this.nextPageInfo() != null;
}

async getNextPage(): Promise<AbstractPage<Item>> {
async getNextPage(): Promise<this> {
const nextInfo = this.nextPageInfo();
if (!nextInfo) {
throw new Error(
Expand Down

0 comments on commit eb7e51f

Please sign in to comment.