Skip to content

Commit

Permalink
[material-ui][base-ui][TablePagination] Accept readonly array for `ro…
Browse files Browse the repository at this point in the history
…wsPerPageOptions` prop (#40481)

Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
pcorpet and ZeeshanTamboli authored Jan 20, 2024
1 parent 6f955d3 commit e6ed918
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface TablePaginationOwnProps {
* Use -1 for the value with a custom label to show all the rows.
* @default [10, 25, 50, 100]
*/
rowsPerPageOptions?: Array<number | { value: number; label: string }>;
rowsPerPageOptions?: ReadonlyArray<number | { value: number; label: string }>;
/**
* Id of the select element within the pagination.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
* Use -1 for the value with a custom label to show all the rows.
* @default [10, 25, 50, 100]
*/
rowsPerPageOptions?: Array<
rowsPerPageOptions?: ReadonlyArray<
| number
| {
value: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface TablePaginationOwnProps extends TablePaginationBaseProps {
* Use -1 for the value with a custom label to show all the rows.
* @default [10, 25, 50, 100]
*/
rowsPerPageOptions?: Array<number | { value: number; label: string }>;
rowsPerPageOptions?: ReadonlyArray<number | { value: number; label: string }>;
/**
* Props applied to the rows per page [`Select`](/material-ui/api/select/) element.
*
Expand Down

0 comments on commit e6ed918

Please sign in to comment.