Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor src/autoPagination.ts #1739

Merged
merged 7 commits into from
Apr 3, 2023

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Mar 31, 2023

Summary

Refactors src/autoPagination.ts to create a clearer division between "define a .next() style iterator" step and "given an implementation of a .next()-style iterator, produce .autoPagingEach and .autoPagingToArray methods" step.

To me this makes this file more readable and easier to extend.

@richardm-stripe richardm-stripe requested review from a team and pakrym-stripe and removed request for a team March 31, 2023 23:20
src/autoPagination.ts Show resolved Hide resolved
src/autoPagination.ts Show resolved Hide resolved
src/autoPagination.ts Outdated Show resolved Hide resolved
src/autoPagination.ts Outdated Show resolved Hide resolved
src/autoPagination.ts Outdated Show resolved Hide resolved
@richardm-stripe richardm-stripe merged commit 91b0a6e into master Apr 3, 2023
@richardm-stripe richardm-stripe deleted the richardm-autopagination-refactor branch April 3, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants