René's URL Explorer Experiment


Title: If import is used in the file, prefer that import specifier over calculating new one by sheetalkamat · Pull Request #42224 · microsoft/TypeScript · GitHub

Open Graph Title: If import is used in the file, prefer that import specifier over calculating new one by sheetalkamat · Pull Request #42224 · microsoft/TypeScript

X Title: If import is used in the file, prefer that import specifier over calculating new one by sheetalkamat · Pull Request #42224 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - If import is used in the file, prefer that import specifier over calculating new one by sheetalkamat · Pull Request #42224 · microsoft/TypeScript

Open Graph Description: Fixes #39117

X Description: Fixes #39117

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

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:a1a92663-6275-24c8-eafd-310fa8cc0a8b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC8E6:1F2B:718F88:988CF0:6B01AEDD
html-safe-noncea935afce2f9faf8ac9192e28f2cba2bee0693012d8bcab1004882d8c335c910f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEU2OjFGMkI6NzE4Rjg4Ojk4OENGMDo2QjAxQUVERCIsInZpc2l0b3JfaWQiOiI3OTQ1ODMyOTg1NjYyNjk3MTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb33b881963e0a3e1299c30dcc69341b6e2533a12cbf914789235420ce5dc32b2
hovercard-subject-tagpull_request:549683574
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/42224/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4c6371ec13ded5ae9159bc71b38ac248e33d64ac0e6bed32c7f7b74d023797fa/microsoft/TypeScript/pull/42224
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c6371ec13ded5ae9159bc71b38ac248e33d64ac0e6bed32c7f7b74d023797fa/microsoft/TypeScript/pull/42224
og:image:altFixes #39117
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesheetalkamat
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/42224#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F42224
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%2F42224
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/42224
Reloadhttps://github.com/microsoft/TypeScript/pull/42224
Reloadhttps://github.com/microsoft/TypeScript/pull/42224
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
masterhttps://github.com/microsoft/TypeScript/tree/master
projectRefDeclarationEmithttps://github.com/microsoft/TypeScript/tree/projectRefDeclarationEmit
Conversationhttps://github.com/microsoft/TypeScript/pull/42224
Commits7 (7)https://github.com/microsoft/TypeScript/pull/42224/commits
Checkshttps://github.com/microsoft/TypeScript/pull/42224/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/42224/files
If import is used in the file, prefer that import specifier over calculating new onehttps://github.com/microsoft/TypeScript/pull/42224#top
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
masterhttps://github.com/microsoft/TypeScript/tree/master
projectRefDeclarationEmithttps://github.com/microsoft/TypeScript/tree/projectRefDeclarationEmit
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 5, 2021https://github.com/microsoft/TypeScript/pull/42224#issue-779737960
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
#39117https://github.com/microsoft/TypeScript/issues/39117
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/sheetalkamat
Test case where the wrong path is emittedhttps://github.com/microsoft/TypeScript/pull/42224/commits/e69d317e138816f9fde965c00506b7251d4b5ad0
e69d317https://github.com/microsoft/TypeScript/pull/42224/commits/e69d317e138816f9fde965c00506b7251d4b5ad0
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 5, 2021https://github.com/microsoft/TypeScript/pull/42224#event-4172542851
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
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
Jan 5, 2021https://github.com/microsoft/TypeScript/pull/42224#event-4172542885
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 5, 2021https://github.com/microsoft/TypeScript/pull/42224#event-4172544053
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Jan 5, 2021https://github.com/microsoft/TypeScript/pull/42224#event-4172545288
https://github.com/sheetalkamat
If import is used in the file, prefer that import specifier over calc…https://github.com/microsoft/TypeScript/pull/42224/commits/685f2b66b7c4c67d42904e9b619c0ecf894a95d6
685f2b6https://github.com/microsoft/TypeScript/pull/42224/commits/685f2b66b7c4c67d42904e9b619c0ecf894a95d6
#39117https://github.com/microsoft/TypeScript/issues/39117
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
force-pushedhttps://github.com/microsoft/TypeScript/compare/0339f7e3da9cf1c1327ce5d0073a7b9d0f68dfcc..685f2b66b7c4c67d42904e9b619c0ecf894a95d6
0339f7ehttps://github.com/microsoft/TypeScript/commit/0339f7e3da9cf1c1327ce5d0073a7b9d0f68dfcc
685f2b6https://github.com/microsoft/TypeScript/commit/685f2b66b7c4c67d42904e9b619c0ecf894a95d6
Compare https://github.com/microsoft/TypeScript/compare/0339f7e3da9cf1c1327ce5d0073a7b9d0f68dfcc..685f2b66b7c4c67d42904e9b619c0ecf894a95d6
January 5, 2021 23:46https://github.com/microsoft/TypeScript/pull/42224#event-4172551041
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 5, 2021 https://github.com/microsoft/TypeScript/pull/42224#ref-issue-640648018
With project references, some cross-package imports of inferred types are emitted with relative paths #39117 https://github.com/microsoft/TypeScript/issues/39117
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Jan 6, 2021 https://github.com/microsoft/TypeScript/pull/42224#pullrequestreview-562223572
View reviewed changes https://github.com/microsoft/TypeScript/pull/42224/files/685f2b66b7c4c67d42904e9b619c0ecf894a95d6
src/compiler/moduleSpecifiers.tshttps://github.com/microsoft/TypeScript/pull/42224/files/685f2b66b7c4c67d42904e9b619c0ecf894a95d6#diff-b5ccb4b5e07181a27fdff3766f67cf5d41b924119ea1bdf14467fb70a560ab6e
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
January 6, 2021 00:23https://github.com/microsoft/TypeScript/pull/42224#commits-pushed-e3adce9
https://github.com/typescript-bot
Update Baselines and/or Applied Lint Fixeshttps://github.com/microsoft/TypeScript/pull/42224/commits/e3adce9e98dffddf53917985c3094f53ab64c677
e3adce9https://github.com/microsoft/TypeScript/pull/42224/commits/e3adce9e98dffddf53917985c3094f53ab64c677
https://github.com/sheetalkamat
When non-relative path is used as user preference, ignore relative pa…https://github.com/microsoft/TypeScript/pull/42224/commits/090ce81333180b12c6bcb35e595563586ef495ec
090ce81https://github.com/microsoft/TypeScript/pull/42224/commits/090ce81333180b12c6bcb35e595563586ef495ec
https://github.com/robpalme
Rob Palmer (robpalme)https://github.com/robpalme
Jan 6, 2021 https://github.com/microsoft/TypeScript/pull/42224#pullrequestreview-562408153
View reviewed changes https://github.com/microsoft/TypeScript/pull/42224/files/090ce81333180b12c6bcb35e595563586ef495ec
src/compiler/moduleSpecifiers.tshttps://github.com/microsoft/TypeScript/pull/42224/files/090ce81333180b12c6bcb35e595563586ef495ec#diff-b5ccb4b5e07181a27fdff3766f67cf5d41b924119ea1bdf14467fb70a560ab6e
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/sheetalkamat
Fix testhttps://github.com/microsoft/TypeScript/pull/42224/commits/71e42ba939ea1d0c550064ee0ee489c6e471ea18
71e42bahttps://github.com/microsoft/TypeScript/pull/42224/commits/71e42ba939ea1d0c550064ee0ee489c6e471ea18
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 6, 2021https://github.com/microsoft/TypeScript/pull/42224#issuecomment-755609874
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Jan 6, 2021https://github.com/microsoft/TypeScript/pull/42224#issuecomment-755609918
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
Sheetal Nandi (@sheetalkamat)https://github.com/sheetalkamat
71e42bahttps://github.com/microsoft/TypeScript/commit/71e42ba939ea1d0c550064ee0ee489c6e471ea18
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=92764
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Jan 6, 2021https://github.com/microsoft/TypeScript/pull/42224#issuecomment-755609919
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
Sheetal Nandi (@sheetalkamat)https://github.com/sheetalkamat
71e42bahttps://github.com/microsoft/TypeScript/commit/71e42ba939ea1d0c550064ee0ee489c6e471ea18
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=92763
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
January 6, 2021 20:04https://github.com/microsoft/TypeScript/pull/42224#event-4176831363
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Wesley Wigham (weswigham)https://github.com/weswigham
January 6, 2021 20:05https://github.com/microsoft/TypeScript/pull/42224#event-4176832885
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Jan 6, 2021 https://github.com/microsoft/TypeScript/pull/42224#ref-pullrequest-780842015
🤖 User test baselines have changed for projectRefDeclarationEmit typescript-bot/TypeScript#124 https://github.com/typescript-bot/TypeScript/pull/124
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Jan 6, 2021https://github.com/microsoft/TypeScript/pull/42224#issuecomment-755684845
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/124
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
January 8, 2021 14:51https://github.com/microsoft/TypeScript/pull/42224#commits-pushed-6764503
https://github.com/sheetalkamat
Merge branch 'master' into projectRefDeclarationEmithttps://github.com/microsoft/TypeScript/pull/42224/commits/676450363b49033b441b43335059b399bc5dd87f
6764503https://github.com/microsoft/TypeScript/pull/42224/commits/676450363b49033b441b43335059b399bc5dd87f
https://github.com/sheetalkamat
Add commenthttps://github.com/microsoft/TypeScript/pull/42224/commits/d4a1ea7883eb959da8c90e2727492e06b0634e22
d4a1ea7https://github.com/microsoft/TypeScript/pull/42224/commits/d4a1ea7883eb959da8c90e2727492e06b0634e22
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Andrew Branch (andrewbranch)https://github.com/andrewbranch
January 8, 2021 22:55https://github.com/microsoft/TypeScript/pull/42224#event-4186361779
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Jan 8, 2021 https://github.com/microsoft/TypeScript/pull/42224#pullrequestreview-564639071
View reviewed changes https://github.com/microsoft/TypeScript/pull/42224/files/d4a1ea7883eb959da8c90e2727492e06b0634e22
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
66ba15ahttps://github.com/microsoft/TypeScript/commit/66ba15a3fda5862b75cde9b15b7956045d1d1bae
Jan 8, 2021https://github.com/microsoft/TypeScript/pull/42224#event-4186409887
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
January 8, 2021 23:20https://github.com/microsoft/TypeScript/pull/42224#event-4186410004
Zzzen (Zzzen)https://github.com/Zzzen
Jan 16, 2021 https://github.com/microsoft/TypeScript/pull/42224#ref-commit-564ef65
https://github.com/sheetalkamat
https://github.com/typescript-bot
https://github.com/Zzzen
If import is used in the file, prefer that import specifier over calc…https://github.com/Zzzen/TypeScript/commit/564ef657725614ad5f8f0470cf54273ad015d6c9
564ef65https://github.com/Zzzen/TypeScript/commit/564ef657725614ad5f8f0470cf54273ad015d6c9
microsoft#42224https://github.com/microsoft/TypeScript/pull/42224
microsoft#39117https://github.com/microsoft/TypeScript/issues/39117
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Mar 10, 2021 https://github.com/microsoft/TypeScript/pull/42224#ref-pullrequest-780794721
Use project relative preference for declaration emit #42232 https://github.com/microsoft/TypeScript/pull/42232
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/42224#event-20417360737
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%2F42224
https://github.com/andrewbranch
Andrew Branch (andrewbranch) https://github.com/andrewbranch
https://github.com/microsoft/TypeScript/pull/42224/files/d4a1ea7883eb959da8c90e2727492e06b0634e22
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
https://github.com/robpalme
Rob Palmer (robpalme) https://github.com/robpalme
https://github.com/microsoft/TypeScript/pull/42224/files/090ce81333180b12c6bcb35e595563586ef495ec
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat) https://github.com/sheetalkamat
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
With project references, some cross-package imports of inferred types are emitted with relative paths https://github.com/microsoft/TypeScript/issues/39117
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42224
https://github.com/sheetalkamat
https://github.com/typescript-bot
https://github.com/andrewbranch
https://github.com/robpalme
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.