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 committed Aug 28, 2023
1 parent 56229d9 commit 713d603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
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 713d603

Please sign in to comment.