René's URL Explorer Experiment


Title: Fix declaration emit leaking an alias's unused type parameter (`Labeled

Open Graph Title: Fix declaration emit leaking an alias's unused type parameter (`Labeled

X Title: Fix declaration emit leaking an alias's unused type parameter (`Labeled

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Fix declaration emit leaking an alias's unused type parameter (`Labeled

Open Graph Description: Some imported aliases don't use their type parameter. When a union or intersection alias like that is used in another file, its type and the emitted .d.ts show the alias's own parameter ins...

X Description: Some imported aliases don't use their type parameter. When a union or intersection alias like that is used in another file, its type and the emitted .d.ts show the alias's own param...

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

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:ccd63f91-0aa7-170c-d879-7231d88020c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4DA:3DF0BE:9D71BA:CD57B2:6B00E5B4
html-safe-nonce828769114e5f38716f63cb22db96921a6c439a7e8709013e5a0931e3b7178ec1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNERBOjNERjBCRTo5RDcxQkE6Q0Q1N0IyOjZCMDBFNUI0IiwidmlzaXRvcl9pZCI6IjI4MDUwMjMxMzY4NTUxNTYxNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac292c1756646e366fec0cc970e6004a17b7f871e06fa3456f2172f63232044b6e
hovercard-subject-tagpull_request:5404907803
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/65594/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/645f05bdaac9b72857436dfc8fa071929c3b21cfa8939e744b227978c2d6025e/microsoft/TypeScript/pull/65594
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/645f05bdaac9b72857436dfc8fa071929c3b21cfa8939e744b227978c2d6025e/microsoft/TypeScript/pull/65594
og:image:altSome imported aliases don't use their type parameter. When a union or intersection alias like that is used in another file, its type and the emitted .d.ts show the alias's own parameter ins...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRyanCavanaugh
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/65594#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F65594
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%2F65594
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/65594
Reloadhttps://github.com/microsoft/TypeScript/pull/65594
Reloadhttps://github.com/microsoft/TypeScript/pull/65594
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
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
mainhttps://github.com/microsoft/TypeScript/tree/main
copilot/fix-declaration-emit-issuehttps://github.com/microsoft/TypeScript/tree/copilot/fix-declaration-emit-issue
Conversationhttps://github.com/microsoft/TypeScript/pull/65594
Commits5 (5)https://github.com/microsoft/TypeScript/pull/65594/commits
Checkshttps://github.com/microsoft/TypeScript/pull/65594/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/65594/files
Fix declaration emit leaking an alias's unused type parameter (Labeledhttps://github.com/microsoft/TypeScript/pull/65594#top
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
mainhttps://github.com/microsoft/TypeScript/tree/main
copilot/fix-declaration-emit-issuehttps://github.com/microsoft/TypeScript/tree/copilot/fix-declaration-emit-issue
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nov 19, 2026https://github.com/microsoft/TypeScript/pull/65594#issue-6501350166
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
#65593https://github.com/microsoft/TypeScript/pull/65593
#65593https://github.com/microsoft/TypeScript/pull/65593
#65593https://github.com/microsoft/TypeScript/pull/65593
#65593https://github.com/microsoft/TypeScript/pull/65593
#65593https://github.com/microsoft/TypeScript/pull/65593
Keep requested alias type arguments when instantiation leaves union/intersection members unchanged #65593https://github.com/microsoft/TypeScript/pull/65593
Declaration emit writes an alias's own type parameter (Labeledhttps://github.com/microsoft/TypeScript/issues/65570
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
https://github.com/RyanCavanaugh
Initial planhttps://github.com/microsoft/TypeScript/pull/65594/commits/966e5971c0aa219e00ef1f4dea04a23daec6afcf
966e597https://github.com/microsoft/TypeScript/pull/65594/commits/966e5971c0aa219e00ef1f4dea04a23daec6afcf
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Copilothttps://github.com/apps/copilot-swe-agent
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nov 19, 2026https://github.com/microsoft/TypeScript/pull/65594#event-36713053985
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
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
Nov 19, 2026https://github.com/microsoft/TypeScript/pull/65594#event-36713058221
started workhttps://github.com/microsoft/TypeScript/sessions/87376627-71ad-4fdc-8c11-a41de0f9877a
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 19, 2026 23:43https://github.com/microsoft/TypeScript/pull/65594#event-36713089840
View session https://github.com/microsoft/TypeScript/sessions/87376627-71ad-4fdc-8c11-a41de0f9877a
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Nov 19, 2026https://github.com/microsoft/TypeScript/pull/65594#event-36713090472
Declaration emit writes an alias's own type parameter (Labeledhttps://github.com/microsoft/TypeScript/issues/65570
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 19, 2026 23:59https://github.com/microsoft/TypeScript/pull/65594#commits-pushed-4f6d3f2
https://github.com/RyanCavanaugh
https://github.com/apps/copilot-swe-agent
Add test for alias type arguments when the alias's type parameters ar…https://github.com/microsoft/TypeScript/pull/65594/commits/4f6d3f2521ee3da4c60055f845748a102631fa9e
4f6d3f2https://github.com/microsoft/TypeScript/pull/65594/commits/4f6d3f2521ee3da4c60055f845748a102631fa9e
https://github.com/RyanCavanaugh
https://github.com/apps/copilot-swe-agent
Compare alias type arguments before reusing an uninstantiated union o…https://github.com/microsoft/TypeScript/pull/65594/commits/a4f8f6845f0087c4b0f5f784e5ea471dc13fe894
a4f8f68https://github.com/microsoft/TypeScript/pull/65594/commits/a4f8f6845f0087c4b0f5f784e5ea471dc13fe894
https://github.com/RyanCavanaugh
https://github.com/apps/copilot-swe-agent
Don't re-reduce an intersection when only its alias is instantiatedhttps://github.com/microsoft/TypeScript/pull/65594/commits/f5f998ff02d45c763efbba3d37cbc31a1440ff35
f5f998fhttps://github.com/microsoft/TypeScript/pull/65594/commits/f5f998ff02d45c763efbba3d37cbc31a1440ff35
https://github.com/RyanCavanaugh
https://github.com/apps/copilot-swe-agent
Accept baselineshttps://github.com/microsoft/TypeScript/pull/65594/commits/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
cfca1b9https://github.com/microsoft/TypeScript/pull/65594/commits/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
https://github.com/apps/typescript-automation
typescript-automationhttps://github.com/apps/typescript-automation
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Nov 20, 2026https://github.com/microsoft/TypeScript/pull/65594#event-36715881283
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nov 20, 2026https://github.com/microsoft/TypeScript/pull/65594#event-36716541956
finished workhttps://github.com/microsoft/TypeScript/sessions/87376627-71ad-4fdc-8c11-a41de0f9877a
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 20, 2026 00:29https://github.com/microsoft/TypeScript/pull/65594#event-36716582132
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nov 20, 2026 https://github.com/microsoft/TypeScript/pull/65594#ref-pullrequest-6499618804
Keep requested alias type arguments when instantiation leaves union/intersection members unchanged #65593 https://github.com/microsoft/TypeScript/pull/65593
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 20, 2026 04:32https://github.com/microsoft/TypeScript/pull/65594#event-36732171028
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
Copilothttps://github.com/apps/copilot-pull-request-reviewer
November 20, 2026 04:32https://github.com/microsoft/TypeScript/pull/65594#event-36732172760
started reviewinghttps://github.com/microsoft/TypeScript/sessions/ac989066-b121-4e9c-9988-6c1a5bf3e426
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 20, 2026 04:33https://github.com/microsoft/TypeScript/pull/65594#event-36732204488
View session https://github.com/microsoft/TypeScript/sessions/ac989066-b121-4e9c-9988-6c1a5bf3e426
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Nov 20, 2026 https://github.com/microsoft/TypeScript/pull/65594#pullrequestreview-5987550185
View reviewed changes https://github.com/microsoft/TypeScript/pull/65594/files/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/65594#pullrequestreview-5987550185
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#65570https://github.com/microsoft/TypeScript/issues/65570
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
Nov 20, 2026 https://github.com/microsoft/TypeScript/pull/65594#pullrequestreview-5996856032
View reviewed changes https://github.com/microsoft/TypeScript/pull/65594/files/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
tsc/internal/checker/checker.gohttps://github.com/microsoft/TypeScript/pull/65594/files/cfca1b9d7d33201e8283f0c4afb74de7e9351e08#diff-001a797ce7c67a0b4ed34f60830c5bb5a06ae77060eb11ecc47155b321ce738b
Jake Bailey (jakebailey)https://github.com/jakebailey
Nov 20, 2026https://github.com/microsoft/TypeScript/pull/65594#discussion_r4645658069
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
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%2F65594
https://github.com/jakebailey
Jake Bailey (jakebailey) https://github.com/jakebailey
https://github.com/microsoft/TypeScript/pull/65594/files/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
Learn more about Copilot code review.https://gh.io/copilot-code-review-docs
https://github.com/microsoft/TypeScript/pull/65594/files/cfca1b9d7d33201e8283f0c4afb74de7e9351e08
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
Copilot code review https://github.com/apps/copilot-swe-agent
Copilot https://github.com/apps/copilot-swe-agent
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Declaration emit writes an alias's own type parameter (Labeledhttps://github.com/microsoft/TypeScript/issues/65570
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/65594
https://github.com/RyanCavanaugh
https://github.com/jakebailey
https://github.com/apps/copilot-pull-request-reviewer
https://github.com/apps/copilot-swe-agent
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.