[EuiTablePagination] Incorrect type for itemsPerPage
and itemsPerPageOptions
depending on pagination.pageSizeOptions
#5697
Labels
itemsPerPage
and itemsPerPageOptions
depending on pagination.pageSizeOptions
#5697
Given the following configuration:
Consumers will get confusing type warnings for
setPageSize(size)
of the following shape:'all'
is not a valid return value forpage.size
in this scenario because the return type ofonTableChange
has not takenpagination.pageSizeOptions
into account.'number | "all"'
should only be the return type ifpagination.pageSizeOptions
also includes'all'
.Similarly,
itemsPerPage
page should only accept'all'
whenpagination.pageSizeOptions
also includes'all'
NB:
'all'
was introduced in #5547The text was updated successfully, but these errors were encountered: