René's URL Explorer Experiment


Title: Experiment: report functions with multiple returns that could be type predicates by danvk · Pull Request #58173 · microsoft/TypeScript · GitHub

Open Graph Title: Experiment: report functions with multiple returns that could be type predicates by danvk · Pull Request #58173 · microsoft/TypeScript

X Title: Experiment: report functions with multiple returns that could be type predicates by danvk · Pull Request #58173 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Experiment: report functions with multiple returns that could be type predicates by danvk · Pull Request #58173 · microsoft/TypeScript

Open Graph Description: This is a side experiment for #58154. That PR extends type predicate inference to functions with multiple returns. It seems to have minimal perf impact and also minimal breakages. This makes you wo...

X Description: This is a side experiment for #58154. That PR extends type predicate inference to functions with multiple returns. It seems to have minimal perf impact and also minimal breakages. This makes you wo...

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

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:ba38c7ef-4c22-58df-48ab-5202757cad37
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE172:215B92:A5215A:DCF017:6B00EE58
html-safe-noncef32a14c0c63842f172457254d67b4b209996c20637305ac4a24d64835131bf3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTcyOjIxNUI5MjpBNTIxNUE6RENGMDE3OjZCMDBFRTU4IiwidmlzaXRvcl9pZCI6Ijg5MjQ1NjMwNzIxNDg4OTMyNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8406b5c23dd72731f3adb5e8241511b29b08245437e36cb5365d3110a04be7b8
hovercard-subject-tagpull_request:1820928376
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/58173/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7a67c6e1309b968de88c4876685cbefc372916129176db7f360f6acbd0fc82c5/microsoft/TypeScript/pull/58173
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a67c6e1309b968de88c4876685cbefc372916129176db7f360f6acbd0fc82c5/microsoft/TypeScript/pull/58173
og:image:altThis is a side experiment for #58154. That PR extends type predicate inference to functions with multiple returns. It seems to have minimal perf impact and also minimal breakages. This makes you wo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedanvk
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/58173#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F58173
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%2F58173
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/58173
Reloadhttps://github.com/microsoft/TypeScript/pull/58173
Reloadhttps://github.com/microsoft/TypeScript/pull/58173
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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
Dan Vanderkam (danvk)https://github.com/danvk
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
danvk:multi-return-errorhttps://github.com/danvk/TypeScript/tree/multi-return-error
Conversationhttps://github.com/microsoft/TypeScript/pull/58173
Commits5 (5)https://github.com/microsoft/TypeScript/pull/58173/commits
Checkshttps://github.com/microsoft/TypeScript/pull/58173/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/58173/files
Experiment: report functions with multiple returns that could be type predicateshttps://github.com/microsoft/TypeScript/pull/58173#top
Dan Vanderkam (danvk)https://github.com/danvk
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
danvk:multi-return-errorhttps://github.com/danvk/TypeScript/tree/multi-return-error
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issue-2240961535
#58154https://github.com/microsoft/TypeScript/pull/58154
#58154https://github.com/microsoft/TypeScript/pull/58154
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
Dan Vanderkam (danvk)https://github.com/danvk
April 11, 2024 17:18https://github.com/microsoft/TypeScript/pull/58173#commits-pushed-30aef71
https://github.com/danvk
Infer type predicates with multiple returnshttps://github.com/microsoft/TypeScript/pull/58173/commits/30aef712cd60f5d38420edb5e7155caa85136c16
30aef71https://github.com/microsoft/TypeScript/pull/58173/commits/30aef712cd60f5d38420edb5e7155caa85136c16
https://github.com/danvk
make multi-return predicate an errorhttps://github.com/microsoft/TypeScript/pull/58173/commits/4bfb71267ba945c050210550826a16a7b8374717
4bfb712https://github.com/microsoft/TypeScript/pull/58173/commits/4bfb71267ba945c050210550826a16a7b8374717
https://github.com/danvk
accept baselineshttps://github.com/microsoft/TypeScript/pull/58173/commits/d79581e2bf678a79fd8e718487eab2d28b565b99
d79581ehttps://github.com/microsoft/TypeScript/pull/58173/commits/d79581e2bf678a79fd8e718487eab2d28b565b99
https://github.com/danvk
add explicit return type annotation to inferred predicatehttps://github.com/microsoft/TypeScript/pull/58173/commits/2bfca2affbd7c2651023fe38ad09ce8a17309bb9
2bfca2ahttps://github.com/microsoft/TypeScript/pull/58173/commits/2bfca2affbd7c2651023fe38ad09ce8a17309bb9
https://github.com/danvk
add explicit return types to two more inferred predicateshttps://github.com/microsoft/TypeScript/pull/58173/commits/3352863f85a18b6aaeebb0b4bdd02f5a32908244
3352863https://github.com/microsoft/TypeScript/pull/58173/commits/3352863f85a18b6aaeebb0b4bdd02f5a32908244
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
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#event-12454444618
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Apr 12, 2024 https://github.com/microsoft/TypeScript/pull/58173#ref-pullrequest-2238667361
Infer type predicates for functions with multiple returns #58154 https://github.com/microsoft/TypeScript/pull/58154
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052601217
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052601260
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=161197
👀 Resultshttps://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052691483
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=161198
👀 Resultshttps://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052625416
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=161196
✅ Resultshttps://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052617576
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=161199
👀 Resultshttps://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052630873
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052617576
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
You can check the log herehttps://typescript.visualstudio.com/TypeScript/_build/index?buildId=161196&_a=summary
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052625416
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
pyrighthttps://github.com/microsoft/TypeScript/pull/58173
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052630873
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Download Benchmarkshttps://typescript.visualstudio.com/TypeScript/_build/results?buildId=161199&view=artifacts
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052645177
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/microsoft/pyright/blob/92f2284d2459fed8a9fdaab023527d8598749fcc/packages/pyright-internal/src/analyzer/parseTreeUtils.ts#L2588https://github.com/microsoft/pyright/blob/92f2284d2459fed8a9fdaab023527d8598749fcc/packages/pyright-internal/src/analyzer/parseTreeUtils.ts#L2588
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052691483
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
facebook/lexicalhttps://github.com/facebook/lexical
tsconfig.jsonhttps://github.com/facebook/lexical/blob/8597e5306213bc17e04d907db260baf79d447441/tsconfig.json
packages/lexical-playground/src/plugins/TableCellResizer/index.tsx#L147https://github.com/facebook/lexical/blob/8597e5306213bc17e04d907db260baf79d447441/packages/lexical-playground/src/plugins/TableCellResizer/index.tsx#L147
Tencent/omihttps://github.com/Tencent/omi
packages/reactive-signal/tsconfig.jsonhttps://github.com/Tencent/omi/blob/d0328754f34f4b3cda8fd828a9516e86f66a1438/packages/reactive-signal/tsconfig.json
packages/reactive-signal/src/reactivity.ts#L76https://github.com/Tencent/omi/blob/d0328754f34f4b3cda8fd828a9516e86f66a1438/packages/reactive-signal/src/reactivity.ts#L76
packages/reactive-signal/examples/tsconfig.jsonhttps://github.com/Tencent/omi/blob/d0328754f34f4b3cda8fd828a9516e86f66a1438/packages/reactive-signal/examples/tsconfig.json
packages/reactive-signal/src/reactivity.ts#L76https://github.com/Tencent/omi/blob/d0328754f34f4b3cda8fd828a9516e86f66a1438/packages/reactive-signal/src/reactivity.ts#L76
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052696449
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052702523
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#event-12455185031
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Apr 12, 2024https://github.com/microsoft/TypeScript/pull/58173#issuecomment-2052703465
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/danvk
Dan Vanderkam (danvk)https://github.com/danvk
May 10, 2024 https://github.com/microsoft/TypeScript/pull/58173#ref-pullrequest-2290086715
Infer AssertsIdentifier type predicates #58495 https://github.com/microsoft/TypeScript/pull/58495
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 16, 2025https://github.com/microsoft/TypeScript/pull/58173#event-20323076850
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%2F58173
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/58173
https://github.com/danvk
https://github.com/RyanCavanaugh
https://github.com/typescript-bot
https://github.com/jakebailey
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.