René's URL Explorer Experiment


Title: Fix narrowing of intersection with function type by gabritto · Pull Request #47483 · microsoft/TypeScript · GitHub

Open Graph Title: Fix narrowing of intersection with function type by gabritto · Pull Request #47483 · microsoft/TypeScript

X Title: Fix narrowing of intersection with function type by gabritto · Pull Request #47483 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Fix narrowing of intersection with function type by gabritto · Pull Request #47483 · microsoft/TypeScript

Open Graph Description: Fixes #45801. Second attempt at a fix, first is in #47282 (along with some explanation of the issue).

X Description: Fixes #45801. Second attempt at a fix, first is in #47282 (along with some explanation of the issue).

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

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:a6a789d9-fe02-2e4c-ca8b-6e54b8278f2e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idACE6:A6D52:596F0FF:7E2A35A:6A500724
html-safe-nonce9b2c6f5bfff4bf09e3373cdb114bd908d58d44c281d5531cbbbbbfd3e9aee932
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0U2OkE2RDUyOjU5NkYwRkY6N0UyQTM1QTo2QTUwMDcyNCIsInZpc2l0b3JfaWQiOiI2MzE1NzA5MzY4NTcxNTI4OTk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7547f6b24b4e3f6cf1169e1b0556aa2237ffdabd3f34dfb87c4c05e2986f75bb
hovercard-subject-tagpull_request:824987477
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/47483/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5126b6f519693d399868e04364ce93d768111198fe8f47eda3fcc36cbaaa89ff/microsoft/TypeScript/pull/47483
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5126b6f519693d399868e04364ce93d768111198fe8f47eda3fcc36cbaaa89ff/microsoft/TypeScript/pull/47483
og:image:altFixes #45801. Second attempt at a fix, first is in #47282 (along with some explanation of the issue).
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegabritto
hostnamegithub.com
expected-hostnamegithub.com
None56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94
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
release93a615b89b7dcbdb6b678f4772931ecc28ada82a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/47483#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47483
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%2F47483
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/47483
Reloadhttps://github.com/microsoft/TypeScript/pull/47483
Reloadhttps://github.com/microsoft/TypeScript/pull/47483
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.5k 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 33 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/issue45801pt2https://github.com/microsoft/TypeScript/tree/gabritto/issue45801pt2
Conversationhttps://github.com/microsoft/TypeScript/pull/47483
Commits2 (2)https://github.com/microsoft/TypeScript/pull/47483/commits
Checkshttps://github.com/microsoft/TypeScript/pull/47483/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/47483/files
Fix narrowing of intersection with function typehttps://github.com/microsoft/TypeScript/pull/47483#top
gabrittohttps://github.com/gabritto
mainhttps://github.com/microsoft/TypeScript/tree/main
gabritto/issue45801pt2https://github.com/microsoft/TypeScript/tree/gabritto/issue45801pt2
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 17, 2022https://github.com/microsoft/TypeScript/pull/47483#issue-1106318201
#45801https://github.com/microsoft/TypeScript/issues/45801
#47282https://github.com/microsoft/TypeScript/pull/47282
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/gabritto
add and and or mask to typefactshttps://github.com/microsoft/TypeScript/pull/47483/commits/3ebc1afc48800f317cd13f6e43a5f373444b09c1
3ebc1afhttps://github.com/microsoft/TypeScript/pull/47483/commits/3ebc1afc48800f317cd13f6e43a5f373444b09c1
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
gabrittohttps://github.com/gabritto
Jan 17, 2022https://github.com/microsoft/TypeScript/pull/47483#event-5907086590
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
Jan 17, 2022https://github.com/microsoft/TypeScript/pull/47483#event-5907086624
https://github.com/gabritto
gabrittohttps://github.com/gabritto
ahejlsberghttps://github.com/ahejlsberg
weswighamhttps://github.com/weswigham
January 17, 2022 23:13https://github.com/microsoft/TypeScript/pull/47483#event-5907148020
https://github.com/gabritto
add commenthttps://github.com/microsoft/TypeScript/pull/47483/commits/e17ca56ebd79ba327644e3117ccd91bf90754da1
e17ca56https://github.com/microsoft/TypeScript/pull/47483/commits/e17ca56ebd79ba327644e3117ccd91bf90754da1
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Jan 19, 2022 https://github.com/microsoft/TypeScript/pull/47483#pullrequestreview-857202805
View reviewed changes https://github.com/microsoft/TypeScript/pull/47483/files/e17ca56ebd79ba327644e3117ccd91bf90754da1
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018067030
@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/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018067068
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
@DanielRosenwasserhttps://github.com/DanielRosenwasser
e17ca56https://github.com/microsoft/TypeScript/commit/e17ca56ebd79ba327644e3117ccd91bf90754da1
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=118025
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018067070
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
@DanielRosenwasserhttps://github.com/DanielRosenwasser
e17ca56https://github.com/microsoft/TypeScript/commit/e17ca56ebd79ba327644e3117ccd91bf90754da1
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=118027
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018067071
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
@DanielRosenwasserhttps://github.com/DanielRosenwasser
e17ca56https://github.com/microsoft/TypeScript/commit/e17ca56ebd79ba327644e3117ccd91bf90754da1
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=118028
The results are in!https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018085320
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018067073
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
@DanielRosenwasserhttps://github.com/DanielRosenwasser
e17ca56https://github.com/microsoft/TypeScript/commit/e17ca56ebd79ba327644e3117ccd91bf90754da1
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=118026
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018085320
@DanielRosenwasserhttps://github.com/DanielRosenwasser
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/118028/artifacts?artifactName=benchmark&fileId=1C0A910F029CFB3C7D2B1DC288B3B7C67B1E9599FE82D123BC9D306900C28CEB01&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022 https://github.com/microsoft/TypeScript/pull/47483#ref-pullrequest-1109961294
🤖 User test baselines have changed for gabritto/issue45801pt2 typescript-bot/TypeScript#219 https://github.com/typescript-bot/TypeScript/pull/219
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1018087620
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/219
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/gabritto
gabrittohttps://github.com/gabritto
3cbc8d2https://github.com/microsoft/TypeScript/commit/3cbc8d2231504b8c9ded8b1449e705813e07f34f
Jan 21, 2022https://github.com/microsoft/TypeScript/pull/47483#event-5934456576
https://github.com/gabritto
gabrittohttps://github.com/gabritto
January 21, 2022 20:05https://github.com/microsoft/TypeScript/pull/47483#event-5934456681
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Jan 22, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1019014828
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 24, 2022 https://github.com/microsoft/TypeScript/pull/47483#ref-pullrequest-1113194736
fix typefacts of intersection #47583 https://github.com/microsoft/TypeScript/pull/47583
https://github.com/gabritto
gabrittohttps://github.com/gabritto
Jan 24, 2022https://github.com/microsoft/TypeScript/pull/47483#issuecomment-1020600265
#47583https://github.com/microsoft/TypeScript/pull/47583
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47483
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/47483#event-20417487580
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%2F47483
https://github.com/RyanCavanaugh
RyanCavanaugh https://github.com/RyanCavanaugh
https://github.com/microsoft/TypeScript/pull/47483/files/e17ca56ebd79ba327644e3117ccd91bf90754da1
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
https://github.com/weswigham
weswigham https://github.com/weswigham
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
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/47483
https://github.com/gabritto
https://github.com/DanielRosenwasser
https://github.com/typescript-bot
https://github.com/ahejlsberg
https://github.com/RyanCavanaugh
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.