Skip to content

Commit

Permalink
fix(types): improve getNextPage() return type (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Aug 28, 2023
1 parent 290908c commit 245a984
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 @@ -575,7 +575,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 245a984

Please sign in to comment.