Skip to content

Commit 245a984

Browse files
fix(types): improve getNextPage() return type (#262)
1 parent 290908c commit 245a984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
575575
return this.nextPageInfo() != null;
576576
}
577577

578-
async getNextPage(): Promise<AbstractPage<Item>> {
578+
async getNextPage(): Promise<this> {
579579
const nextInfo = this.nextPageInfo();
580580
if (!nextInfo) {
581581
throw new Error(

0 commit comments

Comments
 (0)