René's URL Explorer Experiment


Title: Improve narrowing of generic types constrained to `unknown` by Andarist · Pull Request #60816 · microsoft/TypeScript · GitHub

Open Graph Title: Improve narrowing of generic types constrained to `unknown` by Andarist · Pull Request #60816 · microsoft/TypeScript

X Title: Improve narrowing of generic types constrained to `unknown` by Andarist · Pull Request #60816 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Improve narrowing of generic types constrained to `unknown` by Andarist · Pull Request #60816 · microsoft/TypeScript

Open Graph Description: fixes #60795 (comment) , cc @gabritto

X Description: fixes #60795 (comment) , cc @gabritto

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

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:0a42488e-19b3-2119-6396-7d91ee9beff4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB8F6:1A37B:277DD39:367B8AB:6A60B287
html-safe-noncebba56c5aa2b5f1ae1f7abafac99772f35e3677bb172ff7237370da74a4024b98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEY2OjFBMzdCOjI3N0REMzk6MzY3QjhBQjo2QTYwQjI4NyIsInZpc2l0b3JfaWQiOiIxNTYwOTA4OTIzODA5MDg0MDM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac797a66fc6df3cb36fa875fcfd91c53c31d434044ab3308f59af7ffe4f247b7a6
hovercard-subject-tagpull_request:2244115337
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/60816/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7500d4c0a747382f80c5b5c6d2982e200de43cfbb7cab035fedf152797edb36a/microsoft/TypeScript/pull/60816
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7500d4c0a747382f80c5b5c6d2982e200de43cfbb7cab035fedf152797edb36a/microsoft/TypeScript/pull/60816
og:image:altfixes #60795 (comment) , cc @gabritto
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
None35671f8a6946a7a2a81d51ae49f5465bdc5f925c23c9cb839206b24345dbe8d9
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
release746dc49090e6e3995bb502dce0f8807393e36eda
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/60816#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F60816
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%2F60816
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/60816
Reloadhttps://github.com/microsoft/TypeScript/pull/60816
Reloadhttps://github.com/microsoft/TypeScript/pull/60816
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
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 30 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
Andaristhttps://github.com/Andarist
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:improve-negated-unknown-constraints-narrowinghttps://github.com/Andarist/TypeScript/tree/improve-negated-unknown-constraints-narrowing
Conversationhttps://github.com/microsoft/TypeScript/pull/60816
Commits4 (4)https://github.com/microsoft/TypeScript/pull/60816/commits
Checkshttps://github.com/microsoft/TypeScript/pull/60816/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/60816/files
Improve narrowing of generic types constrained to unknownhttps://github.com/microsoft/TypeScript/pull/60816#top
Andaristhttps://github.com/Andarist
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:improve-negated-unknown-constraints-narrowinghttps://github.com/Andarist/TypeScript/tree/improve-negated-unknown-constraints-narrowing
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#issue-2749893954
#60795 (comment)https://github.com/microsoft/TypeScript/pull/60795#issuecomment-2552032233
@gabrittohttps://github.com/gabritto
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
Improve narrowing of generic types constrained to unknownhttps://github.com/microsoft/TypeScript/pull/60816/commits/615bdc86d3b54229e48be0136c849b70a3c87faf
615bdc8https://github.com/microsoft/TypeScript/pull/60816/commits/615bdc86d3b54229e48be0136c849b70a3c87faf
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#event-15715417569
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#issuecomment-2553379303
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Dec 19, 2024 https://github.com/microsoft/TypeScript/pull/60816#pullrequestreview-2514070836
View reviewed changes https://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Andaristhttps://github.com/Andarist
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#discussion_r1891609935
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@gabrittohttps://github.com/gabritto
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Dec 19, 2024 https://github.com/microsoft/TypeScript/pull/60816#pullrequestreview-2514074902
View reviewed changes https://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf
...nes/reference/genericConditionalConstrainedToUnknownNotAssignableToConcreteObject.errors.txthttps://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf#diff-48639aa735e84aac78ca0bc07bf9ee9e1b7e84450fe0a6e11d14f047ee091c31
Andaristhttps://github.com/Andarist
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#discussion_r1891612718
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Dec 19, 2024 https://github.com/microsoft/TypeScript/pull/60816#pullrequestreview-2514083301
View reviewed changes https://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf
tests/baselines/reference/narrowUnknownByTypePredicate.errors.txthttps://github.com/microsoft/TypeScript/pull/60816/files/615bdc86d3b54229e48be0136c849b70a3c87faf#diff-e3756fa295311b7ab9db5cbc5da2ef55d91ced08511d7a6f1d1fd591226eeaa4
Andaristhttps://github.com/Andarist
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#discussion_r1891617996
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
Andaristhttps://github.com/Andarist
December 19, 2024 12:18https://github.com/microsoft/TypeScript/pull/60816#commits-pushed-6473561
https://github.com/Andarist
improve the same with for dependent return typeshttps://github.com/microsoft/TypeScript/pull/60816/commits/6473561985666b10f8e2b37daff8ff835ac3242e
6473561https://github.com/microsoft/TypeScript/pull/60816/commits/6473561985666b10f8e2b37daff8ff835ac3242e
https://github.com/Andarist
add extra test casehttps://github.com/microsoft/TypeScript/pull/60816/commits/07348ba20e97249034953470215cb412844a77fd
07348bahttps://github.com/microsoft/TypeScript/pull/60816/commits/07348ba20e97249034953470215cb412844a77fd
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Dec 19, 2024 https://github.com/microsoft/TypeScript/pull/60816#pullrequestreview-2514196428
View reviewed changes https://github.com/microsoft/TypeScript/pull/60816/files/07348ba20e97249034953470215cb412844a77fd
tests/baselines/reference/dependentReturnType11(strict=true).errors.txthttps://github.com/microsoft/TypeScript/pull/60816/files/07348ba20e97249034953470215cb412844a77fd#diff-3534b4c94c7e9bc903797fd3e6d41a93c06f457f2aa559aeee958d7cc6a2aab8
Andaristhttps://github.com/Andarist
Dec 19, 2024https://github.com/microsoft/TypeScript/pull/60816#discussion_r1891684664
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
update baselineshttps://github.com/microsoft/TypeScript/pull/60816/commits/f0624badbebca20b0bff48553f6361135e3f802a
f0624bahttps://github.com/microsoft/TypeScript/pull/60816/commits/f0624badbebca20b0bff48553f6361135e3f802a
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2026https://github.com/microsoft/TypeScript/pull/60816#event-23867805548
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Mar 24, 2026https://github.com/microsoft/TypeScript/pull/60816#issuecomment-4121448181
6.0 outhttps://devblogs.microsoft.com/typescript/announcing-typescript-6-0/
final release vehicle for this codebasehttps://redirect.github.com/microsoft/TypeScript/issues/62963
post-6.0 patch criteriahttps://redirect.github.com/microsoft/TypeScript/issues/62963#issuecomment-4100336368
6.0 iteration issuehttps://redirect.github.com/microsoft/TypeScript/issues/63085
typescript-go repohttps://redirect.github.com/microsoft/TypeScript-go
DOM Generator repohttps://redirect.github.com/microsoft/TypeScript-DOM-lib-generator
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Mar 24, 2026https://github.com/microsoft/TypeScript/pull/60816#event-23867840841
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F60816
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/60816
https://github.com/Andarist
https://github.com/typescript-bot
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.