-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tree): allow readonly arrays in getChildren return type #17825
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Turns out that this is a breaking change; anywhere this value is assigned into something else the types don't match now. It has ~60 failing build targets across a bunch of projects |
caa8111
to
a793288
Compare
Fixes not being allowed to return a `ReadonlyArray` from a `getChildren` function. Also pulls the definition for the `getChildren` function into a separate type so we don't have to maintain it in 4 different places. Fixes angular#17824.
a793288
to
f7f3dac
Compare
What is the status of this PR? This PR didn't land in neither v10, v11 nor v12 although it is 1.5 years old. A similar PR for chips was merged within a week |
Closing since the tree is in the process of being reworked. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes not being allowed to return a
ReadonlyArray
from agetChildren
function. Also pulls the definition for thegetChildren
function into a separate type so we don't have to maintain it in 4 different places.Fixes #17824.