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
Allow ReadonlyMap with keyvalue pipe #37308
Comments
This seems like a very reasonable request - and probably one that we should apply to other pipes that do not modify their value. Also it would not be a breaking change IMO - so perhaps we could do it in 10.1? @IgorMinar ?? |
ReadonlyMap is a superset of Map, in keyValuePipe we do not change the value of the object so ReadonlyPipe Works right in this case and we can accomodate more types. To accomodate more types added ReadonlyMap in Key Value pipe. Fixes angular#37308
ReadonlyMap is a superset of Map, in keyValuePipe we do not change the value of the object so ReadonlyPipe Works right in this case and we can accomodate more types. To accomodate more types added ReadonlyMap in Key Value pipe. Fixes angular#37308
ReadonlyMap is a superset of Map, in keyValuePipe we do not change the value of the object so ReadonlyPipe Works right in this case and we can accomodate more types. To accomodate more types added ReadonlyMap in Key Value pipe. Fixes angular#37308
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. |
…r#37311) ReadonlyMap is a superset of Map, in keyValuePipe we do not change the value of the object so ReadonlyPipe Works right in this case and we can accomodate more types. To accomodate more types added ReadonlyMap in Key Value pipe. Fixes angular#37308 PR Close angular#37311
🚀 feature request
Relevant Package
This feature request is for @angular/coreDescription
The
keyvalue
pipe accept as inputMap<K, V>
but notReadonlyMap<K, V>
.I don't know how exactly work the pipe, but I don't think the pipe need to change the input value.
Describe the solution you'd like
It's possible to replace
Map<K, V>
byReadonlyMap<K, V>
in theKeyValuePipe.transform
signature without break the backward compatibility.Describe alternatives you've considered
It's possible to add a property to the component and make a cast. But this solution don't seems proper.
The text was updated successfully, but these errors were encountered: