Skip to content

Commit

Permalink
Merge pull request stripe#848 from mhagmajer/patch-1
Browse files Browse the repository at this point in the history
Fix return type for autoPagingEach
  • Loading branch information
richardm-stripe authored Apr 8, 2020
2 parents 4142e99 + f8eb633 commit 389069e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ declare module 'stripe' {
AsyncIterableIterator<T> {
autoPagingEach(
handler: (item: T) => boolean | void | Promise<boolean | void>
): void;
): Promise<void>;

autoPagingToArray(opts: {limit: number}): Promise<Array<T>>;
}
Expand Down

0 comments on commit 389069e

Please sign in to comment.