{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17814","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17814/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17814/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17814/events","html_url":"https://github.com/Microsoft/TypeScript/issues/17814","id":250399865,"number":17814,"title":"Feature request: \"Import {*} from 'module'\" for auto importing all to local scope without namespacing","user":{"login":"pmunin","id":7120440,"avatar_url":"https://avatars1.githubusercontent.com/u/7120440?v=4","gravatar_id":"","url":"https://api.github.com/users/pmunin","html_url":"https://github.com/pmunin","followers_url":"https://api.github.com/users/pmunin/followers","following_url":"https://api.github.com/users/pmunin/following{/other_user}","gists_url":"https://api.github.com/users/pmunin/gists{/gist_id}","starred_url":"https://api.github.com/users/pmunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmunin/subscriptions","organizations_url":"https://api.github.com/users/pmunin/orgs","repos_url":"https://api.github.com/users/pmunin/repos","events_url":"https://api.github.com/users/pmunin/events{/privacy}","received_events_url":"https://api.github.com/users/pmunin/received_events","type":"User","site_admin":false},"labels":[{"id":117630901,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Declined","name":"Declined","color":"556677","default":false},{"id":117630923,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Out%20of%20Scope","name":"Out of Scope","color":"556677","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-15T18:37:50Z","updated_at":"2017-09-11T16:13:24Z","closed_at":null,"author_association":"NONE","body":"**TypeScript Version:**  2.4.2\r\nES6 allows to import all to a namespace ` import * as ns from 'mymodule'`. \r\n\r\nBut we'd like to avoid namespace hell in our code and still have all imports but in local scope.\r\n\r\nPlease add support to import all exports as local scope, without namespace, something like:\r\n`import {*} from 'mymodule'`.\r\n\r\n**Code**\r\n\r\n```ts\r\n//utils/index.ts\r\nexport function doThis(){...}\r\nexport class ThisClass {...}\r\n\r\n//module1.ts\r\nimport {*} from './utils'; \r\n//all names imported to local scope automatically, so refactoring (moving across exported names modules) is easy\r\ndoThis(); \r\nnew ThisClass();\r\n```\r\n\r\nthis issue was started  from here #17813 "},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/328579558","html_url":"https://github.com/Microsoft/TypeScript/issues/17814#issuecomment-328579558","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/17814","id":328579558,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars3.githubusercontent.com/u/8000722?v=4","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T16:13:24Z","updated_at":"2017-09-11T16:13:24Z","author_association":"CONTRIBUTOR","body":"Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed."}}
{"actor":{"display_login":"mhegazy"}}