René's URL Explorer Experiment


Title: QueryList's filter method doesn't support type guards · Issue #38446 · angular/angular · GitHub

Open Graph Title: QueryList's filter method doesn't support type guards · Issue #38446 · angular/angular

X Title: QueryList's filter method doesn't support type guards · Issue #38446 · angular/angular

Description: 🐞 bug report Affected Package The issue is caused by package @angular/core. Is this a regression? No, it has never worked properly. Description Using a type guard as the argument for the QueryList#filter method doesn't narrow the type of...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/core. Is this a regression? No, it has never worked properly. Description Using a type guard as the argument for the QueryList#...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/core. Is this a regression? No, it has never worked properly. Description Using a type guard as the argument for the QueryList#...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QueryList's filter method doesn't support type guards","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package `@angular/core`.\r\n\r\n### Is this a regression?\r\n\r\nNo, it has never worked properly.\r\n\r\n### Description\r\n\r\nUsing a type guard as the argument for the `QueryList#filter` method doesn't narrow the type of the resulting array as expected. It's expected because it works when using `Array#filter`, which the documentation [tells me to see](https://github.com/angular/angular/blob/25f79ba73e19bcf7c0925283a2dfdf2d9186eb49/packages/core/src/linker/query_list.ts#L83).\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nhttps://stackblitz.com/edit/angular-ivy-maecij?file=src%2Fapp%2Fapp.component.ts\r\n\r\nSee line 24, and compare with 26-29.\r\n\r\n## 🔥 Exception or Error\r\n\r\n```text\r\nProperty 'hello' does not exist on type 'HelloComponent | ByeComponent'.\r\n  Property 'hello' does not exist on type 'ByeComponent'.\r\n```\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:** all\r\n\r\n---\r\n\r\nThe fix is trivial and can be seen here:\r\n\r\nhttps://github.com/microsoft/TypeScript/blob/610fa28de55d37b0e46fa1cf6394da117d29be9d/src/lib/es5.d.ts#L1151-L1162\r\n","author":{"url":"https://github.com/lazarljubenovic","@type":"Person","name":"lazarljubenovic"},"datePublished":"2020-08-13T16:03:54Z","url":"https://github.com/angular/angular/issues/38446"}

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:3cf5541d-f373-1c49-6e02-b64c34660211
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA70A:3897F3:A747B1:D9A7B6:6B00E769
html-safe-noncea1956067d8c4b4347a932166154b7742c9b7ae1a9e88e39032c5828ae5851d40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzBBOjM4OTdGMzpBNzQ3QjE6RDlBN0I2OjZCMDBFNzY5IiwidmlzaXRvcl9pZCI6Ijg5MjY5NjM3MDExNjkzMTc3MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0bcd4af6609dafab78a499b5199f10b24fbf40b22673aed17ba5a54b05c1c976
hovercard-subject-tagissue:678553112
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/38446/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0467bf4fe7fd9b248de73d7d8a386742c401249fd6c07ef58a85aae4b4731020/angular/angular/issues/38446
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0467bf4fe7fd9b248de73d7d8a386742c401249fd6c07ef58a85aae4b4731020/angular/angular/issues/38446
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/core. Is this a regression? No, it has never worked properly. Description Using a type guard as the argument for the QueryList#...
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/38446#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F38446
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%2F38446
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/38446
Reloadhttps://github.com/angular/angular/issues/38446
Reloadhttps://github.com/angular/angular/issues/38446
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/38446
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/38446
QueryList's filter method doesn't support type guardshttps://github.com/angular/angular/issues/38446#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
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/lazarljubenovic
lazarljubenovichttps://github.com/lazarljubenovic
on Aug 13, 2020https://github.com/angular/angular/issues/38446#issue-678553112
tells me to seehttps://github.com/angular/angular/blob/25f79ba73e19bcf7c0925283a2dfdf2d9186eb49/packages/core/src/linker/query_list.ts#L83
https://stackblitz.com/edit/angular-ivy-maecij?file=src%2Fapp%2Fapp.component.tshttps://stackblitz.com/edit/angular-ivy-maecij?file=src%2Fapp%2Fapp.component.ts
https://github.com/microsoft/TypeScript/blob/610fa28de55d37b0e46fa1cf6394da117d29be9d/src/lib/es5.d.ts#L1151-L1162https://github.com/microsoft/TypeScript/blob/610fa28de55d37b0e46fa1cf6394da117d29be9d/src/lib/es5.d.ts#L1151-L1162
AndrewKushnirhttps://github.com/AndrewKushnir
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
cross-cutting: typeshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20types%22
on Aug 13, 2020https://github.com/angular/angular/issues/38446#event-3653479297
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Aug 13, 2020https://github.com/angular/angular/issues/38446#event-3653479351
AndrewKushnirhttps://github.com/AndrewKushnir
core: querieshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20queries%22
on Aug 13, 2020https://github.com/angular/angular/issues/38446#event-3653491137
atscotthttps://github.com/atscott
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%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 Oct 20, 2020https://github.com/angular/angular/issues/38446#event-3899523673
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Oct 20, 2020https://github.com/angular/angular/issues/38446#event-3899523764
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/38446#event-4843678160
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 4, 2021https://github.com/angular/angular/issues/38446#issuecomment-854793520
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 24, 2021https://github.com/angular/angular/issues/38446#issuecomment-867669368
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/38446#event-4934867719
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/38446#event-6720027662
AndrewKushnirhttps://github.com/AndrewKushnir
on Apr 1, 2023https://github.com/angular/angular/issues/38446#event-8903037839
feat(core): Allow typeguards on QueryList.filterhttps://github.com/JeanMeche/angular/commit/a5fd73eb001d72bde7e703702dbca22540e38dc3
https://docs.github.com/articles/closing-issues-via-commit-messages
a5fd73ehttps://github.com/JeanMeche/angular/commit/a5fd73eb001d72bde7e703702dbca22540e38dc3
dylhunnhttps://github.com/dylhunn
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
b2327f4https://github.com/angular/angular/commit/b2327f4df12ca91d7cdbc3dc5c0f5cb3ab88a30e
on Apr 4, 2023https://github.com/angular/angular/issues/38446#event-8919379456
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on May 5, 2023https://github.com/angular/angular/issues/38446#issuecomment-1535545834
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 May 5, 2023https://github.com/angular/angular/issues/38446#event-9172561362
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/38446
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/38446
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
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%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.