Title: Unable to augment `export = function/namespace` · Issue #7545 · microsoft/TypeScript · GitHub
Open Graph Title: Unable to augment `export = function/namespace` · Issue #7545 · microsoft/TypeScript
X Title: Unable to augment `export = function/namespace` · Issue #7545 · microsoft/TypeScript
Description: Possible duplicate of #7148, but it seems like it should be working according to #6742. TypeScript Version: 1.8.7 Code File: 1.d.ts declare module 'm1' { function x (): x.Test; namespace x { export interface Test { prop1: boolean; } } ex...
Open Graph Description: Possible duplicate of #7148, but it seems like it should be working according to #6742. TypeScript Version: 1.8.7 Code File: 1.d.ts declare module 'm1' { function x (): x.Test; namespace x { export...
X Description: Possible duplicate of #7148, but it seems like it should be working according to #6742. TypeScript Version: 1.8.7 Code File: 1.d.ts declare module 'm1' { function x (): x.Test; namespace x ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7545
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to augment `export = function/namespace`","articleBody":"Possible duplicate of https://github.com/Microsoft/TypeScript/issues/7148, but it seems like it should be working according to https://github.com/Microsoft/TypeScript/pull/6742.\n\n**TypeScript Version:** \n\n1.8.7\n\n**Code**\n\nFile: `1.d.ts`\n\n``` ts\ndeclare module 'm1' {\n function x (): x.Test;\n\n namespace x {\n export interface Test {\n prop1: boolean;\n }\n }\n\n export = x;\n}\n```\n\nFile: `2.ts`\n\n``` ts\n/// \u003creference path=\"./1.d.ts\" />\n\nimport m1 = require('m1');\n\ndeclare module 'm1' {\n interface Test {\n prop2: boolean;\n }\n}\n\nm1().prop2 // `prop2` does not exist on type `Test`.\n```\n\n**Expected behavior:**\n\nInterfaces should merge, giving me access to `prop2`.\n\n**Actual behavior:** \n\nNo `prop2` on interface `Test`.\n","author":{"url":"https://github.com/blakeembrey","@type":"Person","name":"blakeembrey"},"datePublished":"2016-03-16T18:15:05Z","url":"https://github.com/microsoft/TypeScript/issues/7545"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:03edb5fe-f25a-a532-81e9-4ce6bacf7905 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A962:34CAB:E3BCE3:1238A4D:6B010C3B |
| html-safe-nonce | c50c1b1e7268b1d055a628dec5fc7a046984f3e80448861de4d94cd7e5eceb8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTYyOjM0Q0FCOkUzQkNFMzoxMjM4QTREOjZCMDEwQzNCIiwidmlzaXRvcl9pZCI6IjMzNTM2MjY1MjUxMTgzMDMyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd0461f16882097a60a4193fc4f49f2a183abe59900b6f06c66b00514d6235c2 |
| hovercard-subject-tag | issue:141356712 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7545/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc13545f0b382509bf59c9015c41b9002260b10cb08e35597631000cd67d52e3/microsoft/TypeScript/issues/7545 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc13545f0b382509bf59c9015c41b9002260b10cb08e35597631000cd67d52e3/microsoft/TypeScript/issues/7545 |
| og:image:alt | Possible duplicate of #7148, but it seems like it should be working according to #6742. TypeScript Version: 1.8.7 Code File: 1.d.ts declare module 'm1' { function x (): x.Test; namespace x { export... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blakeembrey |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width