René's URL Explorer Experiment


Title: more precise type facts for intersection by gabritto · Pull Request #47282 · microsoft/TypeScript · GitHub

Open Graph Title: more precise type facts for intersection by gabritto · Pull Request #47282 · microsoft/TypeScript

X Title: more precise type facts for intersection by gabritto · Pull Request #47282 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - more precise type facts for intersection by gabritto · Pull Request #47282 · microsoft/TypeScript

Open Graph Description: Fixes #45801 Brief background When narrowing a type, we rely on TypeFacts flags that tell us what narrowing facts could be true for a value of a given type. The flags cover the possible results of ...

X Description: Fixes #45801 Brief background When narrowing a type, we rely on TypeFacts flags that tell us what narrowing facts could be true for a value of a given type. The flags cover the possible results of ...

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

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:876b6584-e55b-fe1d-3519-5313fb691f1d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE762:163D9C:1424FFF:1A92E84:6A51B6AA
html-safe-nonce269181dc88da52028f5929d5c2b43c1e65e038c593370adb4f285798a6137d39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzYyOjE2M0Q5QzoxNDI0RkZGOjFBOTJFODQ6NkE1MUI2QUEiLCJ2aXNpdG9yX2lkIjoiNDQ2MjkxNzA0MTc5NjUyNzc4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacac4593e05629c2ead95018a5ae1a8351151d4845a64da1b0cdbe8827fa3d741e
hovercard-subject-tagpull_request:812454480
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/47282/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4a6b5bb7c5a4388930fc7992764373ac507f93bc1ad37d3d8d8b24735e1907f8/microsoft/TypeScript/pull/47282
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4a6b5bb7c5a4388930fc7992764373ac507f93bc1ad37d3d8d8b24735e1907f8/microsoft/TypeScript/pull/47282
og:image:altFixes #45801 Brief background When narrowing a type, we rely on TypeFacts flags that tell us what narrowing facts could be true for a value of a given type. The flags cover the possible results of ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegabritto
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/47282#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47282
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
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%2F47282
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/47282
Reloadhttps://github.com/microsoft/TypeScript/pull/47282
Reloadhttps://github.com/microsoft/TypeScript/pull/47282
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
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 31 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
gabrittohttps://github.com/gabritto
mainhttps://github.com/microsoft/TypeScript/tree/main
gabritto/issue45801https://github.com/microsoft/TypeScript/tree/gabritto/issue45801
Conversationhttps://github.com/microsoft/TypeScript/pull/47282
Commits5 (5)https://github.com/microsoft/TypeScript/pull/47282/commits
Checkshttps://github.com/microsoft/TypeScript/pull/47282/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/47282/files
more precise type facts for intersectionhttps://github.com/microsoft/TypeScript/pull/47282#top
gabrittohttps://github.com/gabritto
mainhttps://github.com/microsoft/TypeScript/tree/main
gabritto/issue45801https://github.com/microsoft/TypeScript/tree/gabritto/issue45801
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Dec 31, 2021https://github.com/microsoft/TypeScript/pull/47282#issue-1091673060
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
#45801https://github.com/microsoft/TypeScript/issues/45801
this changed to an andhttps://github.com/microsoft/TypeScript/pull/43131/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8R21763
#45801https://github.com/microsoft/TypeScript/issues/45801
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
more precise type facts for intersectionhttps://github.com/microsoft/TypeScript/pull/47282/commits/2be4cf408cdbc10770c5ddb00269ee2292a8de8a
2be4cf4https://github.com/microsoft/TypeScript/pull/47282/commits/2be4cf408cdbc10770c5ddb00269ee2292a8de8a
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
gabrittohttps://github.com/gabritto
Dec 31, 2021https://github.com/microsoft/TypeScript/pull/47282#event-5831043710
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Dec 31, 2021https://github.com/microsoft/TypeScript/pull/47282#event-5831043726
gabrittohttps://github.com/gabritto
December 31, 2021 14:07https://github.com/microsoft/TypeScript/pull/47282#commits-pushed-f2979c8
https://github.com/gabritto
Merge branch 'main' into gabritto/issue45801https://github.com/microsoft/TypeScript/pull/47282/commits/f2979c8a277a34d04a31b1e46e516ecf6c3d363c
f2979c8https://github.com/microsoft/TypeScript/pull/47282/commits/f2979c8a277a34d04a31b1e46e516ecf6c3d363c
https://github.com/gabritto
fix ignoreObject behaviorhttps://github.com/microsoft/TypeScript/pull/47282/commits/248991688359e2dc072f092345c0fde6cff747e5
2489916https://github.com/microsoft/TypeScript/pull/47282/commits/248991688359e2dc072f092345c0fde6cff747e5
https://github.com/gabritto
gabrittohttps://github.com/gabritto
January 4, 2022 20:12https://github.com/microsoft/TypeScript/pull/47282#event-5842634224
https://github.com/gabritto
gabrittohttps://github.com/gabritto
January 4, 2022 20:26https://github.com/microsoft/TypeScript/pull/47282#event-5842693714
https://github.com/andrewbranch
andrewbranchhttps://github.com/andrewbranch
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005180496
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005180509
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
@andrewbranchhttps://github.com/andrewbranch
2489916https://github.com/microsoft/TypeScript/commit/248991688359e2dc072f092345c0fde6cff747e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116876
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005180510
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
@andrewbranchhttps://github.com/andrewbranch
2489916https://github.com/microsoft/TypeScript/commit/248991688359e2dc072f092345c0fde6cff747e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116875
The results are in!https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005218286
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005180511
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
@andrewbranchhttps://github.com/andrewbranch
2489916https://github.com/microsoft/TypeScript/commit/248991688359e2dc072f092345c0fde6cff747e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116877
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005180513
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
@andrewbranchhttps://github.com/andrewbranch
2489916https://github.com/microsoft/TypeScript/commit/248991688359e2dc072f092345c0fde6cff747e5
herehttps://devdiv.visualstudio.com/d8791be5-9f6d-4ec4-ad68-6bb7464ade24/_build/results?buildId=5588721
The results are in!https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005189702
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005189702
@andrewbranchhttps://github.com/andrewbranch
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 4, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1005218286
@andrewbranchhttps://github.com/andrewbranch
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/116875/artifacts?artifactName=benchmark&fileId=931CBE3EF67311F47EA37EF63C712D70EF083D94CB15664CB0716D062B7EA87B02&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 5, 2022 https://github.com/microsoft/TypeScript/pull/47282#pullrequestreview-844152193
View reviewed changes https://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
gabrittohttps://github.com/gabritto
Jan 5, 2022https://github.com/microsoft/TypeScript/pull/47282#discussion_r778497148
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 5, 2022 https://github.com/microsoft/TypeScript/pull/47282#pullrequestreview-844152742
View reviewed changes https://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 5, 2022 https://github.com/microsoft/TypeScript/pull/47282#pullrequestreview-844153179
View reviewed changes https://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
gabrittohttps://github.com/gabritto
January 5, 2022 13:22https://github.com/microsoft/TypeScript/pull/47282#commits-pushed-01e4047
https://github.com/gabritto
get rid of always true facts, keep only always false factshttps://github.com/microsoft/TypeScript/pull/47282/commits/01e404763aefb88dcc2a800d761e69a9966cfe87
01e4047https://github.com/microsoft/TypeScript/pull/47282/commits/01e404763aefb88dcc2a800d761e69a9966cfe87
https://github.com/gabritto
add typeofEQhostobject to always false function factshttps://github.com/microsoft/TypeScript/pull/47282/commits/dd36ec062ff88d49714a3e030861cee992bb130f
dd36ec0https://github.com/microsoft/TypeScript/pull/47282/commits/dd36ec062ff88d49714a3e030861cee992bb130f
https://github.com/gabritto
gabrittohttps://github.com/gabritto
January 12, 2022 18:23https://github.com/microsoft/TypeScript/pull/47282#event-5882210880
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Jan 14, 2022https://github.com/microsoft/TypeScript/pull/47282#issuecomment-1013371941
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 17, 2022https://github.com/microsoft/TypeScript/pull/47282#event-5907083289
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 17, 2022 https://github.com/microsoft/TypeScript/pull/47282#ref-pullrequest-1106318201
Fix narrowing of intersection with function type #47483 https://github.com/microsoft/TypeScript/pull/47483
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
Feb 3, 2022 https://github.com/microsoft/TypeScript/pull/47282#ref-issue-1123566508
Design Meeting Notes, 1/14/2022 #47724 https://github.com/microsoft/TypeScript/issues/47724
https://github.com/gabritto
gabrittohttps://github.com/gabritto
March 2, 2024 01:47https://github.com/microsoft/TypeScript/pull/47282#event-11985925135
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 16, 2025https://github.com/microsoft/TypeScript/pull/47282#event-20324791731
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%2F47282
https://github.com/RyanCavanaugh
RyanCavanaugh https://github.com/RyanCavanaugh
https://github.com/microsoft/TypeScript/pull/47282/files/248991688359e2dc072f092345c0fde6cff747e5
https://github.com/gabritto
gabritto https://github.com/gabritto
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Type narrowing based on function typeof is broken when function is intersected with a record https://github.com/microsoft/TypeScript/issues/45801
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47282
https://github.com/gabritto
https://github.com/andrewbranch
https://github.com/typescript-bot
https://github.com/ahejlsberg
https://github.com/RyanCavanaugh
https://github.com/sandersn
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.