Skip to content

Commit d1a4e4e

Browse files
feat(api): update via SDK Studio (#206)
1 parent f2f8953 commit d1a4e4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pagination.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class CursorLimitPagination<Item>
267267
export type SinglePageResponse<Item> = Item[];
268268

269269
export class SinglePage<Item> extends AbstractPage<Item> {
270-
items: Array<Item>;
270+
result: Array<Item>;
271271

272272
constructor(
273273
client: APIClient,
@@ -277,11 +277,11 @@ export class SinglePage<Item> extends AbstractPage<Item> {
277277
) {
278278
super(client, response, body, options);
279279

280-
this.items = body || [];
280+
this.result = body || [];
281281
}
282282

283283
getPaginatedItems(): Item[] {
284-
return this.items ?? [];
284+
return this.result ?? [];
285285
}
286286

287287
// @deprecated Please use `nextPageInfo()` instead

0 commit comments

Comments
 (0)