René's URL Explorer Experiment


Title: Cannot use "map" on a type of Array | QueryList because of signature mismatches · Issue #39602 · angular/angular · GitHub

Open Graph Title: Cannot use "map" on a type of Array | QueryList because of signature mismatches · Issue #39602 · angular/angular

X Title: Cannot use "map" on a type of Array | QueryList because of signature mismatches · Issue #39602 · angular/angular

Description: 🐞 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 QueryList and Array. Both types have the map method, but their types are no...

Open Graph Description: 🐞 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 QueryList and Array. Both types hav...

X Description: 🐞 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 QueryList and Array. Both types hav...

Opengraph URL: https://github.com/angular/angular/issues/39602

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot use \"map\" on a type of Array\u003cT> | QueryList\u003cT> because of signature mismatches","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> \r\nThe issue is caused by package `@angular/core`.\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> No.\r\n\r\n\r\n### Description\r\n\r\n\u003c!-- ✍️--> \r\nI have a function that I wish to work with both `QueryList` and `Array`. Both types have the `map` method, but their types are not inter-compatible:\r\n\r\n```text\r\nError:(7, 12) TS2349: This expression is not callable.\r\n  Each member of the union type '(\u003cU>(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | (\u003cU>(fn: (item: any, index: number, array: any[]) => U) => U[])' has signatures, but none of those signatures are compatible with each other.\r\n```\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\u003c!--\r\nPlease create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy\r\n-->\r\n\u003c!-- ✍️--> Trivial to try out and quickly reproduce in any project you have open by writing this:\r\n\r\n```ts\r\nimport { QueryList } from '@angular/core'\r\nfunction test (x: Array\u003cany> | QueryList\u003cany>) {\r\n  return x.map(x => x)\r\n}\r\n```\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n\u003c!-- run `ng version` and paste output below -->\r\n\u003c!-- ✍️-->\r\n     _                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n    \r\n\r\nAngular CLI: 10.0.5\r\nNode: 14.3.0\r\nOS: linux x64\r\n\r\nAngular: 10.0.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, localize, platform-browser\r\n... platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.1000.5\r\n@angular-devkit/build-angular     0.1000.5\r\n@angular-devkit/build-optimizer   0.1000.5\r\n@angular-devkit/build-webpack     0.1000.5\r\n@angular-devkit/core              10.0.5\r\n@angular-devkit/schematics        10.0.5\r\n@angular/cli                      10.0.5\r\n@ngtools/webpack                  10.0.5\r\n@schematics/angular               10.0.5\r\n@schematics/update                0.1000.5\r\nrxjs                              6.5.5\r\ntypescript                        3.9.7\r\nwebpack                           4.43.0\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?** No.\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n","author":{"url":"https://github.com/lazarljubenovic","@type":"Person","name":"lazarljubenovic"},"datePublished":"2020-11-07T21:12:29Z","url":"https://github.com/angular/angular/issues/39602"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8849ed07-167f-4467-bde8-4249c5fd6643
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA256:19F84C:A8F4BF:DAC623:6B00E3D8
html-safe-nonce94e4ec111004394140779bf9e48030a53fddf40cf2eec88efe4f3fbb29fada5d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjU2OjE5Rjg0QzpBOEY0QkY6REFDNjIzOjZCMDBFM0Q4IiwidmlzaXRvcl9pZCI6IjYyNDA5MzcxMDkzNzgwOTg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3de4e64c7365aca079f4e8eda78e22fcc53e1f20d901296bf6c2f9d50a09756a
hovercard-subject-tagissue:738318855
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/39602/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fce6e96468735847463a1c9050f51b417f78128650a982222ffa6acc4cd980fb/angular/angular/issues/39602
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fce6e96468735847463a1c9050f51b417f78128650a982222ffa6acc4cd980fb/angular/angular/issues/39602
og:image:alt🐞 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 QueryList and Array. Both types hav...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelazarljubenovic
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/39602#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F39602
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F39602
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/39602
Reloadhttps://github.com/angular/angular/issues/39602
Reloadhttps://github.com/angular/angular/issues/39602
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/39602
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/39602
Cannot use "map" on a type of Array | QueryList because of signature mismatcheshttps://github.com/angular/angular/issues/39602#top
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/lazarljubenovic
lazarljubenovichttps://github.com/lazarljubenovic
on Nov 7, 2020https://github.com/angular/angular/issues/39602#issue-738318855
JoostKhttps://github.com/JoostK
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
on Nov 7, 2020https://github.com/angular/angular/issues/39602#event-3970238401
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Nov 7, 2020https://github.com/angular/angular/issues/39602#event-3970238419
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Nov 7, 2020https://github.com/angular/angular/issues/39602#issuecomment-723499036
#38446https://github.com/angular/angular/issues/38446
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 4, 2021https://github.com/angular/angular/issues/39602#issuecomment-854794526
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
votes requiredhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22votes%20required%22
on Jun 4, 2021https://github.com/angular/angular/issues/39602#event-4843686829
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 24, 2021https://github.com/angular/angular/issues/39602#issuecomment-867670011
communityhttps://angular.io/resources?category=community
packagehttps://angular.io/guide/creating-libraries
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
insufficient voteshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22insufficient%20votes%22
on Jun 24, 2021https://github.com/angular/angular/issues/39602#event-4934872573
crisbetohttps://github.com/crisbeto
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
insufficient voteshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22insufficient%20votes%22
on Jun 1, 2022https://github.com/angular/angular/issues/39602#event-6720018538
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Nov 14, 2022https://github.com/angular/angular/issues/39602#issuecomment-1313449046
this PRhttps://github.com/microsoft/TypeScript/pull/42620
Playgroundhttps://www.typescriptlang.org/play?noUncheckedIndexedAccess=true&allowUnreachableCode=true&allowUnusedLabels=true&noUnusedLocals=true&noUnusedParameters=true&noImplicitOverride=true&noFallthroughCasesInSwitch=true&noPropertyAccessFromIndexSignature=true&exactOptionalPropertyTypes=true&useUnknownInCatchVariables=true#code/JYWwDg9gTgLgBAbzgRQK4FMoE8AywDO8AvnAGZQQhwDkAAgIYB2A5qgDb1QD0AxtOtQBQg0qkY8YwCIzgx0hABQAPAFxwAglCj0sAHiZYAfHAA+KDNjyF9jIwEpEguM7hR0MVFBlKAdCHpgynAAvMZKdoJEwnKKjOgA7uaYuAQwCnZ2QA
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on May 20, 2023https://github.com/angular/angular/issues/39602#issuecomment-1555975196
@JoostKhttps://github.com/JoostK
JoostKhttps://github.com/JoostK
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 20, 2023https://github.com/angular/angular/issues/39602#event-9294957701
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jun 20, 2023https://github.com/angular/angular/issues/39602#issuecomment-1597894545
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jun 20, 2023https://github.com/angular/angular/issues/39602#event-9573373868
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/39602
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/39602
P4A relatively minor issue that is not relevant to core functionshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P4%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.