René's URL Explorer Experiment


Title: Interface merge of import/local should error when the import is re-exported with `export *` · Issue #9532 · microsoft/TypeScript · GitHub

Open Graph Title: Interface merge of import/local should error when the import is re-exported with `export *` · Issue #9532 · microsoft/TypeScript

X Title: Interface merge of import/local should error when the import is re-exported with `export *` · Issue #9532 · microsoft/TypeScript

Description: TypeScript Version: (2.0.0-dev.20160705) Code // foo.ts declare module 'A' { export interface Foo { (): void; } } declare module '~B' { import { Foo as Roo } from 'A'; interface Foo extends Roo { } } declare module 'B' { export *...

Open Graph Description: TypeScript Version: (2.0.0-dev.20160705) Code // foo.ts declare module 'A' { export interface Foo { (): void; } } declare module '~B' { import { Foo as Roo } from 'A'; interface Foo extends Roo<...

X Description: TypeScript Version: (2.0.0-dev.20160705) Code // foo.ts declare module 'A' { export interface Foo<S> { (): void; } } declare module '~B' { import { Foo as Roo } from 'A...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interface merge of import/local should error when the import is re-exported with `export *`","articleBody":"**TypeScript Version:**  (2.0.0-dev.20160705)\n\n**Code**\n\n``` ts\n// foo.ts\ndeclare module 'A' {\n  export interface Foo\u003cS> {\n    (): void;\n  }\n}\ndeclare module '~B' {\n  import { Foo as Roo } from 'A';\n  interface Foo extends Roo\u003cany> {\n  }\n}\ndeclare module 'B' {\nexport * from '~B';\n}\n\n// boo.ts\ndeclare module 'B' {\n  interface Foo {\n     (message: string): any;\n  }\n}\n\nexport const SOME = 1;\n\n// go.ts\nimport { Foo } from 'B';\n\nlet x: Foo;\nx(); // \u003c-- only have (message: string): any\n\n```\n\n**Expected behavior:**\n`x();` have overloads of `(message: string): any` and `(): void`\n\n**Actual behavior:** \n`x();` only have `(message: string): any`\n\nIf I change `boo.ts` to:\n\n``` ts\n// boo.ts\nimport { Foo as Soo } from 'A';\ndeclare module 'B' {\n  interface Foo extends Soo\u003cany> { // \u003c-- i.e. matching original extends\n     (message: string): any;\n  }\n}\n\nexport const SOME = 1;\n```\n\nThen it works correctly.\n\nAlso, if I reference `~B` instead of `B` (i.e. without re-export), it works correctly too:\n\n``` ts\n// boo.ts\ndeclare module '~B' {\n  interface Foo {\n     (message: string): any;\n  }\n}\n\nexport const SOME = 1;\n\n// go.ts\nimport { Foo } from '~B';\n\nlet x: Foo;\nx()\n```\n","author":{"url":"https://github.com/unional","@type":"Person","name":"unional"},"datePublished":"2016-07-06T06:33:03Z","url":"https://github.com/microsoft/TypeScript/issues/9532"}

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:017f395f-1b14-5ea6-a5f5-cb08c3eb34da
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA942:16EED3:EB9CFD:12C47CE:6B010C37
html-safe-nonce3797bc913a293efc50ef91406571294311caa0e6af2e8f8a1e1044c1ed7884c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTQyOjE2RUVEMzpFQjlDRkQ6MTJDNDdDRTo2QjAxMEMzNyIsInZpc2l0b3JfaWQiOiIyNjM1NTMwMTg1MzIzMTIxNzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace4abc390c93902e784cdd6d8476ffdd9189fef56f15d39d0fd627fd41624b8f5
hovercard-subject-tagissue:164007694
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/9532/issue_layout
twitter:imagehttps://opengraph.githubassets.com/65d56048cac6da50b9b829efeca0ecd2b2bfd171cfb074c332634c74f3b0b6a6/microsoft/TypeScript/issues/9532
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/65d56048cac6da50b9b829efeca0ecd2b2bfd171cfb074c332634c74f3b0b6a6/microsoft/TypeScript/issues/9532
og:image:altTypeScript Version: (2.0.0-dev.20160705) Code // foo.ts declare module 'A' { export interface Foo { (): void; } } declare module '~B' { import { Foo as Roo } from 'A'; interface Foo extends Roo<...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameunional
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/9532#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F9532
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%2F9532
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/9532
Reloadhttps://github.com/microsoft/TypeScript/issues/9532
Reloadhttps://github.com/microsoft/TypeScript/issues/9532
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests310 (310)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/9532
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/9532
Interface merge of import/local should error when the import is re-exported with export *https://github.com/microsoft/TypeScript/issues/9532#top
https://github.com/sandersn
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Design LimitationConstraints of the existing architecture prevent this from being fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Limitation%22
TypeScript 2.1https://github.com/microsoft/TypeScript/milestone/20
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#issue-164007694
Nexthttps://github.com/microsoft/TypeScript/issues/9532?timeline_page=1
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-230692746
Blake Embrey (@blakeembrey)https://github.com/blakeembrey
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#event-714708942
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#event-714708956
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#event-714709080
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-230932460
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 6, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-230942378
https://github.com/paleo
Thomas Mur (paleo)https://github.com/paleo
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231027166
#9127https://github.com/microsoft/TypeScript/issues/9127
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231148433
#8140https://github.com/microsoft/TypeScript/issues/8140
#8140https://github.com/microsoft/TypeScript/issues/8140
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#event-716038727
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231152696
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231153271
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231157111
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231158440
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231158859
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
TypeScript 2.1https://github.com/microsoft/TypeScript/milestone/20
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#event-716085713
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231240329
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 7, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231241312
Blake Embrey (@blakeembrey)https://github.com/blakeembrey
https://github.com/blakeembrey
Blake Embrey (blakeembrey)https://github.com/blakeembrey
on Jul 8, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231255694
Homa Wong (@unional)https://github.com/unional
typings/typings#525 (comment)https://github.com/typings/typings/issues/525#issuecomment-226062689
https://github.com/blakeembrey/jaywalk/blob/master/src/types/index.tshttps://github.com/blakeembrey/jaywalk/blob/master/src/types/index.ts
https://github.com/blakeembrey/node-scrappy/blob/master/src/index.tshttps://github.com/blakeembrey/node-scrappy/blob/master/src/index.ts
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 8, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231258917
#8840https://github.com/microsoft/TypeScript/issues/8840
https://camo.githubusercontent.com/38a53081bd3cc3069e4c3146013978d66acf80ad549ccc24e4d156b5ed609892/68747470733a2f2f66696c65732e6769747465722e696d2f747970696e67732f7832546d2f626c6f62
https://camo.githubusercontent.com/e329f4b0a4a0f158d946048dfb61bb01ae36047344376e903ec1ec4d124cbf68/68747470733a2f2f66696c65732e6769747465722e696d2f747970696e67732f33584b582f626c6f62
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Jul 8, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231261491
https://github.com/lodash/lodash/blob/es/lodash.jshttps://github.com/lodash/lodash/blob/es/lodash.js
https://github.com/angular/angular/blob/master/modules/%40angular/http/index.tshttps://github.com/angular/angular/blob/master/modules/%40angular/http/index.ts
https://github.com/angular/angular/blob/master/modules/%40angular/core/index.tshttps://github.com/angular/angular/blob/master/modules/%40angular/core/index.ts
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 8, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-231386913
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 27, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-235652688
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 27, 2016https://github.com/microsoft/TypeScript/issues/9532#event-736722792
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Design LimitationConstraints of the existing architecture prevent this from being fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Limitation%22
on Jul 27, 2016https://github.com/microsoft/TypeScript/issues/9532#event-736722951
https://github.com/blakeembrey
Blake Embrey (blakeembrey)https://github.com/blakeembrey
on Jul 27, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-235745666
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Jul 27, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-235745965
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Aug 11, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-239268674
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Sep 26, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-249681849
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/unional
Homa Wong (unional)https://github.com/unional
on Nov 9, 2016https://github.com/microsoft/TypeScript/issues/9532#issuecomment-259329688
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/9532#event-1689841495
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/9532
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/9532
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Design LimitationConstraints of the existing architecture prevent this from being fixedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Design%20Limitation%22
TypeScript 2.1https://github.com/microsoft/TypeScript/milestone/20
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.