-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve Pagination type for onSelectPage
The previous iteration of these type was accounting for the generated page numbers being either a string (`SEPARATOR`) or numbers. In this commit I introduce a much narrower type for the `getPageItemsToDisplay` function. In doing so we more closely map to the reality of the implementation and can use a more appropriately narrow type for `onSelectPage`. This resolves some challenges with ECO.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters