Skip to content

fix(types): allow readonly TableHeader columns#9612

Closed
LouisLau-art wants to merge 1 commit intoadobe:mainfrom
LouisLau-art:fix/tableheader-columns-readonly
Closed

fix(types): allow readonly TableHeader columns#9612
LouisLau-art wants to merge 1 commit intoadobe:mainfrom
LouisLau-art:fix/tableheader-columns-readonly

Conversation

@LouisLau-art
Copy link

Fixes #5625.

Allow readonly arrays (e.g. as const) to be passed to TableHeaderProps.columns by widening the type from T[] to ReadonlyArray<T>.

@snowystinger
Copy link
Member

closing this one in favour of #9611 because that one has a signed CLA
Thanks!

@LouisLau-art
Copy link
Author

Thanks for the update — understood. Glad it’s getting addressed in #9611.

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.

TableHeaderProps.columns should be readonly T[] instead of T[]

2 participants