Skip to content

Commit

Permalink
fix(types): improve getNextPage() return type (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and rattrayalex committed Aug 30, 2023
1 parent 9ad9acf commit 6ae3abb
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 6ae3abb

Please sign in to comment.