Skip to content

Commit

Permalink
fix: pagination return type (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Sep 11, 2023
1 parent a7ad899 commit 6d1c2fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-days-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/types": patch
---

fix paginator type
2 changes: 1 addition & 1 deletion packages/types/src/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Client } from "./client";
*
* Expected type definition of a paginator.
*/
export type Paginator<T> = AsyncGenerator<T, T, unknown>;
export type Paginator<T> = AsyncGenerator<T, undefined, unknown>;

/**
* @public
Expand Down

0 comments on commit 6d1c2fb

Please sign in to comment.