Skip to content

Commit eec62b1

Browse files
authored
fix paginator types (#1501)
1 parent 000b2ae commit eec62b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changeset/tasty-cougars-study.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/core/src/pagination/createPaginator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const makePagedClientRequest = async <ClientType extends Client<any, any, any>,
77
CommandCtor: any,
88
client: ClientType,
99
input: InputType,
10-
withCommand: (command: Command<any, any, any, any, any>) => typeof command = (_) => _,
10+
withCommand: (command: Command<any, any, any, any, any>) => typeof command | undefined = (_) => _,
1111
...args: any[]
1212
): Promise<OutputType> => {
1313
let command = new CommandCtor(input);

0 commit comments

Comments
 (0)