Skip to content

Commit 6d1c2fb

Browse files
authored
fix: pagination return type (#861)
1 parent a7ad899 commit 6d1c2fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lazy-days-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/types": patch
3+
---
4+
5+
fix paginator type

packages/types/src/pagination.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Client } from "./client";
55
*
66
* Expected type definition of a paginator.
77
*/
8-
export type Paginator<T> = AsyncGenerator<T, T, unknown>;
8+
export type Paginator<T> = AsyncGenerator<T, undefined, unknown>;
99

1010
/**
1111
* @public

0 commit comments

Comments
 (0)