Add typing to the Pager object. The typing addition makes it clearer for language servers to detect what type of objects are yielded from the iterable, making TSC easier to use.
Additionally, this simplifies the way items are returned from the intermediate list object. Different from before, if the server count changes while the Pager is working, this change will continue to function. If desired, it can be reset to exiting gracefully should the server count change.
Add typing to the
Pager
object. The typing addition makes it clearer for language servers to detect what type of objects are yielded from the iterable, making TSC easier to use.Additionally, this simplifies the way items are returned from the intermediate list object. Different from before, if the server count changes while the Pager is working, this change will continue to function. If desired, it can be reset to exiting gracefully should the server count change.