René's URL Explorer Experiment


Title: Improved type inference for object literals by ahejlsberg · Pull Request #19513 · microsoft/TypeScript · GitHub

Open Graph Title: Improved type inference for object literals by ahejlsberg · Pull Request #19513 · microsoft/TypeScript

X Title: Improved type inference for object literals by ahejlsberg · Pull Request #19513 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Improved type inference for object literals by ahejlsberg · Pull Request #19513 · microsoft/TypeScript

Open Graph Description: This PR improves type inference for multiple object literals occurring in the same context. When multiple object literal types contribute to a union type, we now normalize the object literal types ...

X Description: This PR improves type inference for multiple object literals occurring in the same context. When multiple object literal types contribute to a union type, we now normalize the object literal types ...

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

X: @github

direct link

Domain: github.com

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:97c9b11e-9f19-0e22-e70f-ec256f6b26b8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCFC2:328893:6DA58:9B384:6A636094
html-safe-noncef4c1a44bfacc24f3a5bf8126a1bb0224063468645e077762e41b756f6d2b25b9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkMyOjMyODg5Mzo2REE1ODo5QjM4NDo2QTYzNjA5NCIsInZpc2l0b3JfaWQiOiI2MzU1NTM1NDAyMDEyNzI5NDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac45f8858b316995c034b8d2543d14a3543f7b1f4a6bec521458268069491b23de
hovercard-subject-tagpull_request:149065685
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/19513/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9a6bd1491ccca7f17cc0671f8a6c2b79f9da0624873ee1aefc22d7c67a53e8df/microsoft/TypeScript/pull/19513
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9a6bd1491ccca7f17cc0671f8a6c2b79f9da0624873ee1aefc22d7c67a53e8df/microsoft/TypeScript/pull/19513
og:image:altThis PR improves type inference for multiple object literals occurring in the same context. When multiple object literal types contribute to a union type, we now normalize the object literal types ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
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
release71b1218de2f2ab29c4d5ce72568e68e2c56044c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/19513#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F19513
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F19513
Sign up https://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/19513
Reloadhttps://github.com/microsoft/TypeScript/pull/19513
Reloadhttps://github.com/microsoft/TypeScript/pull/19513
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 21 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
strictObjectLiteralshttps://github.com/microsoft/TypeScript/tree/strictObjectLiterals
Conversationhttps://github.com/microsoft/TypeScript/pull/19513
Commits18 (18)https://github.com/microsoft/TypeScript/pull/19513/commits
Checkshttps://github.com/microsoft/TypeScript/pull/19513/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/19513/files
Improved type inference for object literalshttps://github.com/microsoft/TypeScript/pull/19513#top
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
strictObjectLiteralshttps://github.com/microsoft/TypeScript/tree/strictObjectLiterals
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Oct 26, 2017https://github.com/microsoft/TypeScript/pull/19513#issue-268938203
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
#19236https://github.com/microsoft/TypeScript/issues/19236
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
ahejlsberghttps://github.com/ahejlsberg
October 24, 2017 13:27https://github.com/microsoft/TypeScript/pull/19513#commits-pushed-b17e75b
https://github.com/ahejlsberg
Missing properties in fresh object literals are known to be undefinedhttps://github.com/microsoft/TypeScript/pull/19513/commits/b17e75b52b99b4fa793a4f46eadde63d87d6fe2c
b17e75bhttps://github.com/microsoft/TypeScript/pull/19513/commits/b17e75b52b99b4fa793a4f46eadde63d87d6fe2c
https://github.com/ahejlsberg
Normalize object literals in widened union typeshttps://github.com/microsoft/TypeScript/pull/19513/commits/b435c90f86815ada39ebdecdc8608872f1790eb4
b435c90https://github.com/microsoft/TypeScript/pull/19513/commits/b435c90f86815ada39ebdecdc8608872f1790eb4
https://github.com/ahejlsberg
Normalize nested object literalshttps://github.com/microsoft/TypeScript/pull/19513/commits/1641f9bb0e5b0022cc6c1ad7e24e599b4bb98d10
1641f9bhttps://github.com/microsoft/TypeScript/pull/19513/commits/1641f9bb0e5b0022cc6c1ad7e24e599b4bb98d10
https://github.com/ahejlsberg
Use a single union type for all inferred object literal typeshttps://github.com/microsoft/TypeScript/pull/19513/commits/e483ea53d5156ec4004ed2556d933dc2f83dde96
e483ea5https://github.com/microsoft/TypeScript/pull/19513/commits/e483ea53d5156ec4004ed2556d933dc2f83dde96
https://github.com/ahejlsberg
Merge branch 'master' into strictObjectLiteralshttps://github.com/microsoft/TypeScript/pull/19513/commits/0fbe98331fb0e7d6a87bd7f734502dc1cc82c6d3
0fbe983https://github.com/microsoft/TypeScript/pull/19513/commits/0fbe98331fb0e7d6a87bd7f734502dc1cc82c6d3
https://github.com/ahejlsberg
Accept API changeshttps://github.com/microsoft/TypeScript/pull/19513/commits/ad3dc20789f7cad1c25f00f03d3c9dfc76154a6d
ad3dc20https://github.com/microsoft/TypeScript/pull/19513/commits/ad3dc20789f7cad1c25f00f03d3c9dfc76154a6d
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/19513/commits/6023433fe3c6d6d32fecd94b0e6ac66a5290a339
6023433https://github.com/microsoft/TypeScript/pull/19513/commits/6023433fe3c6d6d32fecd94b0e6ac66a5290a339
https://github.com/ahejlsberg
Ensure void return in forEachTypehttps://github.com/microsoft/TypeScript/pull/19513/commits/aa6b438eba36cf3e2f9de62e5b46b560e07dc3b8
aa6b438https://github.com/microsoft/TypeScript/pull/19513/commits/aa6b438eba36cf3e2f9de62e5b46b560e07dc3b8
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/19513/commits/14b7e755efe1cd8c7353915e33dcbf3ca789bde1
14b7e75https://github.com/microsoft/TypeScript/pull/19513/commits/14b7e755efe1cd8c7353915e33dcbf3ca789bde1
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/19513/commits/2669061693066d191076e3b4b99cf71ab5463b87
2669061https://github.com/microsoft/TypeScript/pull/19513/commits/2669061693066d191076e3b4b99cf71ab5463b87
https://github.com/ahejlsberg
Add missing semicolonhttps://github.com/microsoft/TypeScript/pull/19513/commits/fd0ac155b96ca3b1664bd28352510dd659d4f67f
fd0ac15https://github.com/microsoft/TypeScript/pull/19513/commits/fd0ac155b96ca3b1664bd28352510dd659d4f67f
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
RyanCavanaughhttps://github.com/RyanCavanaugh
mhegazyhttps://github.com/mhegazy
October 26, 2017 23:01https://github.com/microsoft/TypeScript/pull/19513#event-1312984375
ahejlsberghttps://github.com/ahejlsberg
October 27, 2017 10:05https://github.com/microsoft/TypeScript/pull/19513#commits-pushed-9c27c56
https://github.com/ahejlsberg
Perform subtype reduction when widened union type contains {}https://github.com/microsoft/TypeScript/pull/19513/commits/9c27c56779b10b62e93f1c54850cb8130555d9db
9c27c56https://github.com/microsoft/TypeScript/pull/19513/commits/9c27c56779b10b62e93f1c54850cb8130555d9db
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/19513/commits/39383cadb19d86dfe30b1cd6efb9ee319177b95a
39383cahttps://github.com/microsoft/TypeScript/pull/19513/commits/39383cadb19d86dfe30b1cd6efb9ee319177b95a
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
Oct 27, 2017 https://github.com/microsoft/TypeScript/pull/19513#ref-issue-269229538
Design Meeting Notes, 10/27/2017 #19536 https://github.com/microsoft/TypeScript/issues/19536
ahejlsberghttps://github.com/ahejlsberg
October 27, 2017 17:18https://github.com/microsoft/TypeScript/pull/19513#commits-pushed-73802be
https://github.com/ahejlsberg
Undo extra subtype reduction in getWidenedTypehttps://github.com/microsoft/TypeScript/pull/19513/commits/73802be0048afec7871682c7f8590a697a46a359
73802behttps://github.com/microsoft/TypeScript/pull/19513/commits/73802be0048afec7871682c7f8590a697a46a359
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/19513/commits/709541cfe968e6f46e32f0c75a0809da19a33a5d
709541chttps://github.com/microsoft/TypeScript/pull/19513/commits/709541cfe968e6f46e32f0c75a0809da19a33a5d
https://github.com/ahejlsberg
Redo subtype reduction with correct --noImplicitAny error reportinghttps://github.com/microsoft/TypeScript/pull/19513/commits/90d20f260a45ee8f08548fb420529748265d7248
https://github.com/microsoft/TypeScript/commit/90d20f260a45ee8f08548fb420529748265d7248#comments
90d20f2https://github.com/microsoft/TypeScript/pull/19513/commits/90d20f260a45ee8f08548fb420529748265d7248
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/19513/commits/4adb15bbe4a78a2f20d6eb5f8c139406f23b57a8
4adb15bhttps://github.com/microsoft/TypeScript/pull/19513/commits/4adb15bbe4a78a2f20d6eb5f8c139406f23b57a8
https://github.com/ahejlsberg
Undo unnecessary changehttps://github.com/microsoft/TypeScript/pull/19513/commits/fd0d40cc2b42633be1ab668ddd9227eb1d4264c5
fd0d40chttps://github.com/microsoft/TypeScript/pull/19513/commits/fd0d40cc2b42633be1ab668ddd9227eb1d4264c5
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
7798f69https://github.com/microsoft/TypeScript/commit/7798f69558b3227f525ac3b56cb2cd8d03bc294b
Oct 29, 2017https://github.com/microsoft/TypeScript/pull/19513#event-1315355362
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Oct 31, 2017 https://github.com/microsoft/TypeScript/pull/19513#ref-issue-270065420
DT regression from Improved type inference for object literals #19613 https://github.com/microsoft/TypeScript/issues/19613
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Oct 31, 2017https://github.com/microsoft/TypeScript/pull/19513#issuecomment-340855840
#19613https://github.com/microsoft/TypeScript/issues/19613
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
October 31, 2017 18:19https://github.com/microsoft/TypeScript/pull/19513#event-1319380330
https://github.com/robyoder
robyoderhttps://github.com/robyoder
Dec 31, 2017 https://github.com/microsoft/TypeScript/pull/19513#ref-issue-191991492
Type inference corner case in combination of object spread with destructuring #12532 https://github.com/microsoft/TypeScript/issues/12532
https://github.com/RafaelSalguero
RafaelSalguerohttps://github.com/RafaelSalguero
Jan 19, 2018https://github.com/microsoft/TypeScript/pull/19513#issuecomment-359107457
#19843https://github.com/microsoft/TypeScript/issues/19843
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
https://github.com/xaviergonz
xaviergonzhttps://github.com/xaviergonz
Feb 18, 2018 https://github.com/microsoft/TypeScript/pull/19513#ref-pullrequest-298126029
fixes for typescript 2.7 mobxjs/mobx-state-tree#667 https://github.com/mobxjs/mobx-state-tree/pull/667
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Mar 17, 2018 https://github.com/microsoft/TypeScript/pull/19513#ref-issue-306014537
Bad inference for destructured object parameter with default value #22644 https://github.com/microsoft/TypeScript/issues/22644
https://github.com/microsoft
microsofthttps://github.com/microsoft
Jul 3, 2018https://github.com/microsoft/TypeScript/pull/19513#event-1712803147
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%2F19513
https://github.com/RyanCavanaugh
RyanCavanaugh https://github.com/RyanCavanaugh
https://github.com/mhegazy
mhegazy https://github.com/mhegazy
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19513
https://github.com/ahejlsberg
https://github.com/mhegazy
https://github.com/RafaelSalguero
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.