René's URL Explorer Experiment


Title: Allow augmentation of re-exported module · Issue #12607 · microsoft/TypeScript · GitHub

Open Graph Title: Allow augmentation of re-exported module · Issue #12607 · microsoft/TypeScript

X Title: Allow augmentation of re-exported module · Issue #12607 · microsoft/TypeScript

Description: I've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported. This has significant implications, particularly ...

Open Graph Description: I've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported. This has...

X Description: I've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported. This...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/12607

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow augmentation of re-exported module","articleBody":"I've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported.\r\n\r\nThis has significant implications, particularly for library authors and consumers.\r\n\r\nAn example would probably help clarify. \r\n\r\nSuppose as an authored of a library I want to expose a simple surface area from which consumers should import from. I do this by creating an index.ts file that re-exports modules from nested sub-folders like so:\r\n\r\n```ts\r\n// index.ts\r\nexport { AClass } from './path/to/class-a';\r\nexport { BClass } from './path/to/class-b';\r\nexport { CClass } from './path/to/class-c';\r\n```\r\n\r\nNow a consumer can import like so:\r\n```ts\r\nimport { AClass, BClass } from 'some-library'; \r\n```\r\n\r\nThe benefits of the above:\r\n\r\n1. As library author I am *free to reorganise the modules* into sub-folders as the library code base grows without breaking consumers\r\n2. As library consumer *I don't need to have intimate knowledge of how the library organises it's file on disk* - instead I have one path to import modules and this is the name of the npm package itself.\r\n\r\nOnce augmentation enters the picture all of the above benefits are now gone.\r\n\r\n**This is really bad for everyone.**\r\n\r\nWhat can be done about the situation?\r\n\r\nThanks\r\nChristian\r\n","author":{"url":"https://github.com/christianacca","@type":"Person","name":"christianacca"},"datePublished":"2016-12-01T19:20:54Z","url":"https://github.com/microsoft/TypeScript/issues/12607"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0785109f-8d32-3d5f-8780-108ff5ad0cbd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA2F8:FC5BE:DA150E:122619B:6B01027B
html-safe-nonce9f8dca741ef070d1b255b5cf4715b003ca99e0e7283197aee249ea88019bdb27
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkY4OkZDNUJFOkRBMTUwRToxMjI2MTlCOjZCMDEwMjdCIiwidmlzaXRvcl9pZCI6Ijc1ODA2MjM1NjI3NzIzODIzMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac38597f753b6b4a5d97613bb399d84d58193d314223e2714f366b48283406118f
hovercard-subject-tagissue:192937446
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/12607/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e250652e9d0f49df1b8c88271e61e40b77f6f1ff2aee531b934be6842f889e47/microsoft/TypeScript/issues/12607
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e250652e9d0f49df1b8c88271e61e40b77f6f1ff2aee531b934be6842f889e47/microsoft/TypeScript/issues/12607
og:image:altI've sadly discovered that it not possible to augment a ES2015 module that is being re-exported. At least not without specifying the full path to the ES2015 that is then being re-exported. This has...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechristianacca
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/12607#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F12607
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%2Fissues%2F12607
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/12607
Reloadhttps://github.com/microsoft/TypeScript/issues/12607
Reloadhttps://github.com/microsoft/TypeScript/issues/12607
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12607
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12607
Allow augmentation of re-exported modulehttps://github.com/microsoft/TypeScript/issues/12607#top
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/christianacca
Christian Crowhurst (christianacca)https://github.com/christianacca
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issue-192937446
https://github.com/christianacca
Christian Crowhurst (christianacca)https://github.com/christianacca
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issuecomment-264270654
#11406https://github.com/microsoft/TypeScript/issues/11406
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
commenthttps://github.com/Microsoft/TypeScript/issues/11406#issuecomment-251835176
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issuecomment-264273067
https://github.com/christianacca
Christian Crowhurst (christianacca)https://github.com/christianacca
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issuecomment-264274752
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
ng-tablehttps://github.com/esvit/ng-table/blob/master/src/browser/public-interfaces.ts#L108
https://github.com/blakeembrey
Blake Embrey (blakeembrey)https://github.com/blakeembrey
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issuecomment-264276303
#9532 (comment)https://github.com/microsoft/TypeScript/issues/9532#issuecomment-235745666
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#event-879033383
https://github.com/christianacca
Christian Crowhurst (christianacca)https://github.com/christianacca
on Dec 1, 2016https://github.com/microsoft/TypeScript/issues/12607#issuecomment-264276767
https://github.com/doliver3
doliver3https://github.com/doliver3
on Feb 19, 2017https://github.com/microsoft/TypeScript/issues/12607#issuecomment-280923231
https://github.com/endel
Endel Dreyer (endel)https://github.com/endel
on Feb 25, 2018https://github.com/microsoft/TypeScript/issues/12607#issuecomment-368270700
https://github.com/the-reality-engineer
The Reality Engineer (the-reality-engineer)https://github.com/the-reality-engineer
on Oct 9, 2018https://github.com/microsoft/TypeScript/issues/12607#issuecomment-428336020
Endel Dreyer (@endel)https://github.com/endel
https://github.com/the-reality-engineer
The Reality Engineer (the-reality-engineer)https://github.com/the-reality-engineer
on Feb 14, 2019https://github.com/microsoft/TypeScript/issues/12607#issuecomment-463702214
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Apr 1, 2019https://github.com/microsoft/TypeScript/issues/12607#event-2244865727
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Apr 1, 2019https://github.com/microsoft/TypeScript/issues/12607#event-2244865769
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 1, 2019https://github.com/microsoft/TypeScript/issues/12607#issuecomment-478779909
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/12607#issuecomment-478806473
#8545https://github.com/microsoft/TypeScript/issues/8545
https://github.com/mmichlin66
Michael Michlin (mmichlin66)https://github.com/mmichlin66
on Jun 15, 2019https://github.com/microsoft/TypeScript/issues/12607#issuecomment-502362381
Christian Crowhurst (@christianacca)https://github.com/christianacca
https://github.com/J-Rojas
J-Rojashttps://github.com/J-Rojas
on Aug 31, 2021https://github.com/microsoft/TypeScript/issues/12607#issuecomment-909488438
https://github.com/avin-kavish
Avin (avin-kavish)https://github.com/avin-kavish
on Jun 23, 2022https://github.com/microsoft/TypeScript/issues/12607#issuecomment-1164657779
https://github.com/macarie
Raul Macarie (macarie)https://github.com/macarie
on Jul 28, 2022https://github.com/microsoft/TypeScript/issues/12607#issuecomment-1197788645
https://github.com/pmndrs/valtiohttps://github.com/pmndrs/valtio
pmndrs/valtio#458https://github.com/pmndrs/valtio/pull/458
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/12607
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/12607
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
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.