René's URL Explorer Experiment


Title: Filter out non-array types when contextually typing array literal elements by Andarist · Pull Request #52589 · microsoft/TypeScript · GitHub

Open Graph Title: Filter out non-array types when contextually typing array literal elements by Andarist · Pull Request #52589 · microsoft/TypeScript

X Title: Filter out non-array types when contextually typing array literal elements by Andarist · Pull Request #52589 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Filter out non-array types when contextually typing array literal elements by Andarist · Pull Request #52589 · microsoft/TypeScript

Open Graph Description: fixes #52588

X Description: fixes #52588

Opengraph URL: https://github.com/microsoft/TypeScript/pull/52589

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:3e46bb29-ebb8-5263-47e2-b7a838428118
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8434:31E99C:24A79C3:30EF660:6B019D27
html-safe-nonce2fa3e0fc26c10bc51cd658edcfe329a32c9c43140dd1d399083703ebac539ccb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDM0OjMxRTk5QzoyNEE3OUMzOjMwRUY2NjA6NkIwMTlEMjciLCJ2aXNpdG9yX2lkIjoiNDQzODMwMTQwNzQxMzY0MDQ4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbb855cb1ff645b4590a60f6e420a7e17ca5a06bf71c61a2aa9170abf05da65b1
hovercard-subject-tagpull_request:1228142244
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/52589/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e604ddb75df020de06b3a4c176499a641b0a09bfece8f3b5f70668e9b82c8c9c/microsoft/TypeScript/pull/52589
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e604ddb75df020de06b3a4c176499a641b0a09bfece8f3b5f70668e9b82c8c9c/microsoft/TypeScript/pull/52589
og:image:altfixes #52588
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/52589#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F52589
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%2Fmicrosoft%2FTypeScript%2Fpull%2F52589
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/52589
Reloadhttps://github.com/microsoft/TypeScript/pull/52589
Reloadhttps://github.com/microsoft/TypeScript/pull/52589
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Jake Bailey (jakebailey)https://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/prefer-array-members-for-contextual-type-of-arr-elhttps://github.com/Andarist/TypeScript/tree/fix/prefer-array-members-for-contextual-type-of-arr-el
Conversationhttps://github.com/microsoft/TypeScript/pull/52589
Commits11 (11)https://github.com/microsoft/TypeScript/pull/52589/commits
Checkshttps://github.com/microsoft/TypeScript/pull/52589/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/52589/files
Filter out non-array types when contextually typing array literal elementshttps://github.com/microsoft/TypeScript/pull/52589#top
Jake Bailey (jakebailey)https://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/prefer-array-members-for-contextual-type-of-arr-elhttps://github.com/Andarist/TypeScript/tree/fix/prefer-array-members-for-contextual-type-of-arr-el
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issue-1569845977
#52588https://github.com/microsoft/TypeScript/issues/52588
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Filter out non-array types when contextually typing union membershttps://github.com/microsoft/TypeScript/pull/52589/commits/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
8ebc95fhttps://github.com/microsoft/TypeScript/pull/52589/commits/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#event-8432283761
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 3, 2023 https://github.com/microsoft/TypeScript/pull/52589#pullrequestreview-1282970128
View reviewed changes https://github.com/microsoft/TypeScript/pull/52589/files/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/52589/files/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168201
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168285
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145367
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416260185
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168286
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145366
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416270162
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168289
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145368
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416180638
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168292
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145369
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416282854
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168293
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145364
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168294
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145370
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416179873
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416168297
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
8ebc95fhttps://github.com/microsoft/TypeScript/commit/8ebc95ffcdb81fb6acab7dec548afc7540fa01f2
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=145365
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#event-8434642029
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416179873
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416180638
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
webpackhttps://github.com/webpack/webpack.git
tsconfig.types.jsonhttps://github.com/webpack/webpack/blob/4b4ca3bb53f36a5b8fc6bc1bd976ed7af161bd80/tsconfig.types.json
lib/config/defaults.js#L1162https://github.com/webpack/webpack/blob/4b4ca3bb53f36a5b8fc6bc1bd976ed7af161bd80/lib/config/defaults.js#L1162
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416190929
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
here.https://mseng.visualstudio.com/DefaultCollection/Typescript/_git/Typescript/pullrequest/700264
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416215823
herehttps://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416180638
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416260185
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416270162
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/145366/artifacts?artifactName=benchmark&fileId=EE945F2ED1D2A5DC47FEDD648D48765CD88521451E25018C813F1F425CDA604C02&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416282854
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416283033
herehttps://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416180638
https://github.com/microsoft/typescript-error-deltashttps://github.com/microsoft/typescript-error-deltas
https://github.com/microsoft/typescript-error-deltas/blob/main/userTests/webpack/test.jsonhttps://github.com/microsoft/typescript-error-deltas/blob/main/userTests/webpack/test.json
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416287255
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416288068
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416300723
https://github.com/microsoft/TypeScript/wiki/All-The-Botshttps://github.com/microsoft/TypeScript/wiki/All-The-Bots
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
Feb 3, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416367524
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 4, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1416812513
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
this regressionhttps://github.com/microsoft/TypeScript/issues/52575#issuecomment-1416592690
#51865https://github.com/microsoft/TypeScript/pull/51865
this onehttps://github.com/microsoft/TypeScript/pull/52611
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 5, 2023 https://github.com/microsoft/TypeScript/pull/52589#ref-pullrequest-1570980534
Consult cached contextual types only when no contextFlags #52611 https://github.com/microsoft/TypeScript/pull/52611
Mateusz Burzyński (Andarist)https://github.com/Andarist
February 11, 2023 09:34https://github.com/microsoft/TypeScript/pull/52589#commits-pushed-47bd0dd
https://github.com/Andarist
Merge branch 'main' into fix/prefer-array-members-for-contextual-type…https://github.com/microsoft/TypeScript/pull/52589/commits/47bd0dded930febe9dfa7d741f7df5b13d236a4e
47bd0ddhttps://github.com/microsoft/TypeScript/pull/52589/commits/47bd0dded930febe9dfa7d741f7df5b13d236a4e
https://github.com/Andarist
Add extra test case for contextual type cachinghttps://github.com/microsoft/TypeScript/pull/52589/commits/c659bc8fb69792e3dbd401836b0d124f2c90b81f
c659bc8https://github.com/microsoft/TypeScript/pull/52589/commits/c659bc8fb69792e3dbd401836b0d124f2c90b81f
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
Feb 11, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1426662263
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Feb 11, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1426708486
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
Drop anyIterable cachinghttps://github.com/microsoft/TypeScript/pull/52589/commits/85c03c5f7f47410044350903a68497784ccf4f28
85c03c5https://github.com/microsoft/TypeScript/pull/52589/commits/85c03c5f7f47410044350903a68497784ccf4f28
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 8, 2023 https://github.com/microsoft/TypeScript/pull/52589#pullrequestreview-1331702641
View reviewed changes https://github.com/microsoft/TypeScript/pull/52589/files/85c03c5f7f47410044350903a68497784ccf4f28
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/52589/files/85c03c5f7f47410044350903a68497784ccf4f28#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#discussion_r1130201216
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Mateusz Burzyński (Andarist)https://github.com/Andarist
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#discussion_r1130205265
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034884
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034931
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034932
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034933
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034935
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 8, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1461034940
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064342
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064714
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=149014
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463075253
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064716
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=149013
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463189776
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064718
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=149012
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463129516
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064719
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=149015
The results are in!https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463195649
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463064720
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (@jakebailey)https://github.com/jakebailey
85c03c5https://github.com/microsoft/TypeScript/commit/85c03c5f7f47410044350903a68497784ccf4f28
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=149011
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463075253
Jake Bailey (@jakebailey)https://github.com/jakebailey
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463129516
Jake Bailey (@jakebailey)https://github.com/jakebailey
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/149012/artifacts?artifactName=benchmark&fileId=44A0EA6158DD2894D6E10FC8B4AE226F8C44A7FA6C8DFB405C7D728750EC687701&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463189776
Jake Bailey (@jakebailey)https://github.com/jakebailey
You can check the log herehttps://typescript.visualstudio.com/TypeScript/_build/index?buildId=149013&_a=summary
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1463195649
Jake Bailey (@jakebailey)https://github.com/jakebailey
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 10, 2023 https://github.com/microsoft/TypeScript/pull/52589#pullrequestreview-1335311013
View reviewed changes https://github.com/microsoft/TypeScript/pull/52589/files/85c03c5f7f47410044350903a68497784ccf4f28
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
e775383https://github.com/microsoft/TypeScript/commit/e7753831e938008ad332f8f7299dd7891340837b
Mar 10, 2023https://github.com/microsoft/TypeScript/pull/52589#event-8720420382
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
March 10, 2023 17:57https://github.com/microsoft/TypeScript/pull/52589#event-8720637248
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 16, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1471052813
#52588https://github.com/microsoft/TypeScript/issues/52588
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Mar 16, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1471118303
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1471153499
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023 https://github.com/microsoft/TypeScript/pull/52589#ref-commit-b87ac31
https://github.com/jakebailey
Revert "Filter out non-array types when contextually typing array lit…https://github.com/jakebailey/TypeScript/commit/b87ac3124b906ad79a439d9a1cf4d809b45dd0ef
b87ac31https://github.com/jakebailey/TypeScript/commit/b87ac3124b906ad79a439d9a1cf4d809b45dd0ef
microsoft#52589https://github.com/microsoft/TypeScript/pull/52589
e775383https://github.com/jakebailey/TypeScript/commit/e7753831e938008ad332f8f7299dd7891340837b
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023 https://github.com/microsoft/TypeScript/pull/52589#ref-pullrequest-1626547689
Revert PR #52589 #53280 https://github.com/microsoft/TypeScript/pull/53280
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023https://github.com/microsoft/TypeScript/pull/52589#issuecomment-1471168778
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023 https://github.com/microsoft/TypeScript/pull/52589#ref-commit-c7386ea
https://github.com/jakebailey
Revert "Filter out non-array types when contextually typing array lit…https://github.com/jakebailey/TypeScript/commit/c7386ea707a5f5d04bcaa61c303f3cebb9ef4083
c7386eahttps://github.com/jakebailey/TypeScript/commit/c7386ea707a5f5d04bcaa61c303f3cebb9ef4083
microsoft#52589https://github.com/microsoft/TypeScript/pull/52589
e775383https://github.com/jakebailey/TypeScript/commit/e7753831e938008ad332f8f7299dd7891340837b
Jake Bailey (jakebailey)https://github.com/jakebailey
Mar 16, 2023 https://github.com/microsoft/TypeScript/pull/52589#ref-commit-e012404
https://github.com/jakebailey
Revert PRhttps://github.com/microsoft/TypeScript/commit/e0124040f07a142d18934cde9b95b04ebe90160f
#52589https://github.com/microsoft/TypeScript/pull/52589
(https://github.com/microsoft/TypeScript/commit/e0124040f07a142d18934cde9b95b04ebe90160f
#53280https://github.com/microsoft/TypeScript/pull/53280
)https://github.com/microsoft/TypeScript/commit/e0124040f07a142d18934cde9b95b04ebe90160f
e012404https://github.com/microsoft/TypeScript/commit/e0124040f07a142d18934cde9b95b04ebe90160f
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/52589#event-20419498025
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F52589
https://github.com/jakebailey
Jake Bailey (jakebailey) https://github.com/jakebailey
https://github.com/microsoft/TypeScript/pull/52589/files/85c03c5f7f47410044350903a68497784ccf4f28
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/jakebailey
Jake Bailey (jakebailey) https://github.com/jakebailey
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Contextual type for an array element doesn't filter out non-array union members https://github.com/microsoft/TypeScript/issues/52588
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52589
https://github.com/Andarist
https://github.com/RyanCavanaugh
https://github.com/typescript-bot
https://github.com/jakebailey
https://github.com/fatcerberus
https://github.com/ahejlsberg
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.