From 245a9847d1ba5bbe5262bc06b2f7bb7385cd3a9a Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:51:13 +0100 Subject: [PATCH] fix(types): improve getNextPage() return type (#262) --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index db7cb7269..23063bb1b 100644 --- a/src/core.ts +++ b/src/core.ts @@ -575,7 +575,7 @@ export abstract class AbstractPage implements AsyncIterable { return this.nextPageInfo() != null; } - async getNextPage(): Promise> { + async getNextPage(): Promise { const nextInfo = this.nextPageInfo(); if (!nextInfo) { throw new Error(