René's URL Explorer Experiment


Title: Normalize union/intersection type combinations by ahejlsberg · Pull Request #11717 · microsoft/TypeScript · GitHub

Open Graph Title: Normalize union/intersection type combinations by ahejlsberg · Pull Request #11717 · microsoft/TypeScript

X Title: Normalize union/intersection type combinations by ahejlsberg · Pull Request #11717 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Normalize union/intersection type combinations by ahejlsberg · Pull Request #11717 · microsoft/TypeScript

Open Graph Description: With this PR we normalize combinations of intersection and union types based on the distributive property of the & type operator over the | type operator. Specifically, because X & (A | B) ...

X Description: With this PR we normalize combinations of intersection and union types based on the distributive property of the & type operator over the | type operator. Specifically, because X & ...

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

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:af4ee2ad-a0d8-e1af-9ceb-854eaeba4003
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3B4:22F2D4:42CCF9:59F038:6AFBEC52
html-safe-nonce22c6436a1c83a99f7376631c94f5e91090313a4479f5b2a4d71dfaf7809eb1c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0I0OjIyRjJENDo0MkNDRjk6NTlGMDM4OjZBRkJFQzUyIiwidmlzaXRvcl9pZCI6IjExMTE5NDM3MDAxNzE5NzU3NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace5f6f3ecaef4da87712996b1fb5e5ea9aec44fd9b03134e2724cda6188273693
hovercard-subject-tagpull_request:89902323
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/11717/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ef84926d081a31505b59b7442cba752591399baa4dc1e717d54035a226ea2490/microsoft/TypeScript/pull/11717
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef84926d081a31505b59b7442cba752591399baa4dc1e717d54035a226ea2490/microsoft/TypeScript/pull/11717
og:image:altWith this PR we normalize combinations of intersection and union types based on the distributive property of the & type operator over the | type operator. Specifically, because X & (A | B) ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec
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
releasedf859c48a4c8b4c0009c19bb4e82101aacb4b998
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/11717#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F11717
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%2F11717
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/11717
Reloadhttps://github.com/microsoft/TypeScript/pull/11717
Reloadhttps://github.com/microsoft/TypeScript/pull/11717
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests335 (335)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/pulse
https://github.com/microsoft/TypeScript
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
normalizeIntersectionTypeshttps://github.com/microsoft/TypeScript/tree/normalizeIntersectionTypes
Conversationhttps://github.com/microsoft/TypeScript/pull/11717
Commits4 (4)https://github.com/microsoft/TypeScript/pull/11717/commits
Checkshttps://github.com/microsoft/TypeScript/pull/11717/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/11717/files
Normalize union/intersection type combinationshttps://github.com/microsoft/TypeScript/pull/11717#top
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
normalizeIntersectionTypeshttps://github.com/microsoft/TypeScript/tree/normalizeIntersectionTypes
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#issue-183807955
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
#9919https://github.com/microsoft/TypeScript/issues/9919
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
October 18, 2016 11:53https://github.com/microsoft/TypeScript/pull/11717#commits-pushed-ef5f3c9
https://github.com/ahejlsberg
Normalize intersection and union typeshttps://github.com/microsoft/TypeScript/pull/11717/commits/ef5f3c90a457ba50484da59000c39a2797150240
ef5f3c9https://github.com/microsoft/TypeScript/pull/11717/commits/ef5f3c90a457ba50484da59000c39a2797150240
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/11717/commits/eb7d2cbe9bbc7fd8332488fa084c9293ca29e53a
eb7d2cbhttps://github.com/microsoft/TypeScript/pull/11717/commits/eb7d2cbe9bbc7fd8332488fa084c9293ca29e53a
https://github.com/ahejlsberg
Simplify logic in checkTypeRelatedTohttps://github.com/microsoft/TypeScript/pull/11717/commits/6a0f72916eb31ded2a011dd9dd4e701145b85d78
6a0f729https://github.com/microsoft/TypeScript/pull/11717/commits/6a0f72916eb31ded2a011dd9dd4e701145b85d78
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/11717/commits/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
bf7f2e2https://github.com/microsoft/TypeScript/pull/11717/commits/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
https://github.com/msftclas
Microsoft Contribution License Agreements (msftclas)https://github.com/msftclas
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#event-828190204
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Oct 18, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-167238647
Intersecting discriminated union breaks type narrowing #9919 https://github.com/microsoft/TypeScript/issues/9919
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 18, 2016 https://github.com/microsoft/TypeScript/pull/11717#pullrequestreview-4770181
View reviewed changes https://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
https://github.com/microsoft/TypeScript/pull/11717#pullrequestreview-4770181
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txthttps://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275#diff-291f2005635de677441bdf7999abdf1b136d5ba77e7ed96f2a00f6c29f00c399
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r83960941
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r83969522
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 19, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r84098727
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r83963221
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Oct 18, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r83970324
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 19, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r84098538
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
https://github.com/gcnew
Marin Marinov (gcnew)https://github.com/gcnew
Oct 19, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-pullrequest-167483546
Attempt to fix #9919 - Intersecting discriminated union breaks type narrowing #9939 https://github.com/microsoft/TypeScript/pull/9939
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 19, 2016 https://github.com/microsoft/TypeScript/pull/11717#pullrequestreview-4897365
View reviewed changes https://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 19, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r84098538
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
tests/baselines/reference/errorMessagesIntersectionTypes04.errors.txthttps://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275#diff-291f2005635de677441bdf7999abdf1b136d5ba77e7ed96f2a00f6c29f00c399
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Oct 19, 2016https://github.com/microsoft/TypeScript/pull/11717#discussion_r84098727
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Oct 19, 2016 https://github.com/microsoft/TypeScript/pull/11717#pullrequestreview-4929007
View reviewed changes https://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
66857b5https://github.com/microsoft/TypeScript/commit/66857b5f8eef4978dc29c7ea1c343cd8b7239fdd
Oct 19, 2016https://github.com/microsoft/TypeScript/pull/11717#event-829654632
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
October 19, 2016 20:15https://github.com/microsoft/TypeScript/pull/11717#event-829654670
https://github.com/yortus
Troy Gerwien (yortus)https://github.com/yortus
Oct 21, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-169392810
User-defined type guards seemingly unused when given an intersection type #10144 https://github.com/microsoft/TypeScript/issues/10144
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Nov 2, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-186791351
Discriminated Unions Incompatible with Intersection Types #11989 https://github.com/microsoft/TypeScript/issues/11989
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nov 11, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-188824438
type guard does not narrow intersection over union #12180 https://github.com/microsoft/TypeScript/issues/12180
https://github.com/ethanresnick
Ethan Resnick (ethanresnick)https://github.com/ethanresnick
Nov 16, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-181490078
Control Flow Type Inference: Inferred Type Varying by Condition Order #11426 https://github.com/microsoft/TypeScript/issues/11426
https://github.com/HerringtonDarkholme
Herrington Darkholme (HerringtonDarkholme)https://github.com/HerringtonDarkholme
Nov 18, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-190264547
Flow Analyze don't recognize combined Intersection and Union Type #12345 https://github.com/microsoft/TypeScript/issues/12345
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Nov 18, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-190375483
2.1 Regression: (A | undefined) & B is possibly undefined #12354 https://github.com/microsoft/TypeScript/issues/12354
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Nov 28, 2016 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-192012544
Compiler hangs on union of enums with a large number of elements #12535 https://github.com/microsoft/TypeScript/issues/12535
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
May 17, 2017 https://github.com/microsoft/TypeScript/pull/11717#ref-issue-229482152
Generic constraint not playing well with new 'object' type. #15920 https://github.com/microsoft/TypeScript/issues/15920
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Sep 13, 2017 https://github.com/microsoft/TypeScript/pull/11717#ref-pullrequest-257393763
Remove empty intersection types in union types #18438 https://github.com/microsoft/TypeScript/pull/18438
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Jun 19, 2018https://github.com/microsoft/TypeScript/pull/11717#event-1689918051
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%2F11717
https://github.com/sandersn
Nathan Shively-Sanders (sandersn) https://github.com/sandersn
https://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
https://github.com/mhegazy
Mohamed Hegazy (mhegazy) https://github.com/mhegazy
https://github.com/microsoft/TypeScript/pull/11717/files/bf7f2e2999cf7f36d0f735def0ac7711f3bb2275
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/11717
https://github.com/ahejlsberg
https://github.com/sandersn
https://github.com/mhegazy
https://github.com/msftclas
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.