-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Cannot use "map" on a type of Array<T> | QueryList<T> because of signature mismatches #39602
Copy link
Copy link
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriescross-cutting: typesfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Milestone
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriescross-cutting: typesfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Type
Fields
Give feedbackNo fields configured for issues without a type.
🐞 bug report
Affected Package
The issue is caused by package
@angular/core.Is this a regression?
No.Description
I have a function that I wish to work with both
QueryListandArray. Both types have themapmethod, but their types are not inter-compatible:🔬 Minimal Reproduction
Trivial to try out and quickly reproduce in any project you have open by writing this:🌍 Your Environment
Angular Version:
Anything else relevant? No.