Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 28, 2024
1 parent f2f8953 commit 846a96c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class CursorLimitPagination<Item>
export type SinglePageResponse<Item> = Item[];

export class SinglePage<Item> extends AbstractPage<Item> {
items: Array<Item>;
result: Array<Item>;

constructor(
client: APIClient,
Expand All @@ -277,11 +277,11 @@ export class SinglePage<Item> extends AbstractPage<Item> {
) {
super(client, response, body, options);

this.items = body || [];
this.result = body || [];
}

getPaginatedItems(): Item[] {
return this.items ?? [];
return this.result ?? [];
}

// @deprecated Please use `nextPageInfo()` instead
Expand Down

0 comments on commit 846a96c

Please sign in to comment.