Title: Namespace keyword · Issue #2159 · microsoft/TypeScript · GitHub
Open Graph Title: Namespace keyword · Issue #2159 · microsoft/TypeScript
X Title: Namespace keyword · Issue #2159 · microsoft/TypeScript
Description: Now that we have ES6 modules in TypeScript, we should probably move towards a cleaner separation in the module types. In truth, "internal modules" have been a bit of confusion for developers new to TypeScript. They're much closer to what...
Open Graph Description: Now that we have ES6 modules in TypeScript, we should probably move towards a cleaner separation in the module types. In truth, "internal modules" have been a bit of confusion for developers new to...
X Description: Now that we have ES6 modules in TypeScript, we should probably move towards a cleaner separation in the module types. In truth, "internal modules" have been a bit of confusion for develop...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2159
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Namespace keyword","articleBody":"Now that we have ES6 modules in TypeScript, we should probably move towards a cleaner separation in the module types.\n\nIn truth, \"internal modules\" have been a bit of confusion for developers new to TypeScript. They're much closer to what most people would call a namespace.\n\nLikewise, \"external modules\" in JS speak really just are modules now. \n\nLet's move to a simpler explanation and have namespaces and modules be more separate. We'd still support the previous syntax, but this would mean introducing a new keyword called 'namespace' that was a bit easier to read and doesn't conflict with ES6 terminology.\n\nBefore:\n\n``` TypeScript\nmodule Math {\n export function add(x, y) { ... }\n}\n```\n\nAfter:\n\n``` TypeScript\nnamespace Math {\n export function add(x, y) { ... }\n}\n```\n","author":{"url":"https://github.com/sophiajt","@type":"Person","name":"sophiajt"},"datePublished":"2015-02-26T23:33:39Z","url":"https://github.com/microsoft/TypeScript/issues/2159"}
| 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:a5600a31-735a-b848-95ae-50ce0fabd155 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8FA:1CEA6F:A70F18:DE9F90:6B00E91F |
| html-safe-nonce | 98898fd01849cf0c5afa599d863bd2b6e7e1913695923ac273cf7512304aa643 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEZBOjFDRUE2RjpBNzBGMTg6REU5RjkwOjZCMDBFOTFGIiwidmlzaXRvcl9pZCI6IjE4OTY1NTEyNzIxNTMxNDc2NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7a271e456a8d362ffad1214cb0335fdcb1de877105ff552af81c38ce9ebea1b8 |
| hovercard-subject-tag | issue:59163232 |
| 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/2159/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c77cbd1f45a81596e35dab53d625aefaa16a2c175890b31e539082c0f6ff665/microsoft/TypeScript/issues/2159 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c77cbd1f45a81596e35dab53d625aefaa16a2c175890b31e539082c0f6ff665/microsoft/TypeScript/issues/2159 |
| og:image:alt | Now that we have ES6 modules in TypeScript, we should probably move towards a cleaner separation in the module types. In truth, "internal modules" have been a bit of confusion for developers new to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sophiajt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width