Title: Add new syntax to import namespaces · Issue #2956 · microsoft/TypeScript · GitHub
Open Graph Title: Add new syntax to import namespaces · Issue #2956 · microsoft/TypeScript
X Title: Add new syntax to import namespaces · Issue #2956 · microsoft/TypeScript
Description: Opening this separate issue as suggested by Mohamed Hegazy (@mhegazy) in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/forgot. Quoting Mohamed Hegazy (@mhegazy) h...
Open Graph Description: Opening this separate issue as suggested by Mohamed Hegazy (@mhegazy) in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/for...
X Description: Opening this separate issue as suggested by Mohamed Hegazy (@mhegazy) in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2956
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add new syntax to import namespaces","articleBody":"Opening this separate issue as suggested by @mhegazy in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/forgot.\n\nQuoting @mhegazy here:\n\n> @ahejlsberg proposed a import \\* from \"mod\" syntax to do that a while back. and in this case it would be import \\* from namespace. the problem here is it makes it harder to do a syntactic transformation on a single file, as the compiler needs to have the full program information to know how things should be qualified. it is something that we are looking into, i would recommend filing a new issue for this instead of having the discussion on this PR.\n> \n> The PR is just renaming internal modules to namespaces to avoid any confusion with ES6 modules. this is something we got feedback for regularly from customers.\n\nNow that TypeScript has renamed internal modules to namespaces and has the namespace keyword (PR #2923) it would be nice to be able to import a namespace and then have access to the types defined on that namespace. Would this essentially just be a new syntax to do what `/// \u003creference path>` does?\n\nWhat are the obstacles and concerns for this feature?\n","author":{"url":"https://github.com/mikekhaas","@type":"Person","name":"mikekhaas"},"datePublished":"2015-04-29T17:50:00Z","url":"https://github.com/microsoft/TypeScript/issues/2956"}
| 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:ca24f8e8-1ceb-8d8c-6b9c-4a35bc3c6dbe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E630:3D8CBB:C93AC7:10AE9E5:6B00F4F7 |
| html-safe-nonce | 59fb705bc92aafa46c46a310d0d8b8ce3f288ee5cba81d212b6f87f5f241a631 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjMwOjNEOENCQjpDOTNBQzc6MTBBRTlFNTo2QjAwRjRGNyIsInZpc2l0b3JfaWQiOiIxMTE5MDY2MzI3OTA3MTAzOTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5993d2a223dc7a6280f46f429ad0a8c7874fe03535da3cf002ecf35878fb7dfb |
| hovercard-subject-tag | issue:71941439 |
| 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/2956/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb92077e8e18d856e554d34b3a2f0ea670af013f896d301f3aa6ee21d6763b6b/microsoft/TypeScript/issues/2956 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb92077e8e18d856e554d34b3a2f0ea670af013f896d301f3aa6ee21d6763b6b/microsoft/TypeScript/issues/2956 |
| og:image:alt | Opening this separate issue as suggested by Mohamed Hegazy (@mhegazy) in the PR mentioned below. I'm not the most informed on this issue but I am opening it because I do not want it to get lost/for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikekhaas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width