{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1563","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1563/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1563/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1563/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1563","id":52899518,"number":1563,"title":"Import destructuring","user":{"login":"spion","id":502412,"avatar_url":"https://avatars.githubusercontent.com/u/502412?v=3","gravatar_id":"","url":"https://api.github.com/users/spion","html_url":"https://github.com/spion","followers_url":"https://api.github.com/users/spion/followers","following_url":"https://api.github.com/users/spion/following{/other_user}","gists_url":"https://api.github.com/users/spion/gists{/gist_id}","starred_url":"https://api.github.com/users/spion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spion/subscriptions","organizations_url":"https://api.github.com/users/spion/orgs","repos_url":"https://api.github.com/users/spion/repos","events_url":"https://api.github.com/users/spion/events{/privacy}","received_events_url":"https://api.github.com/users/spion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/In+Discussion","name":"In Discussion","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-26T13:17:08Z","updated_at":"2015-01-07T15:52:08Z","closed_at":null,"body":"Support for import destructuring\r\n\r\n```typescript\r\nimport { Query, Database, Pool, Transaction } = require('db');\r\n```\r\n\r\nvs\r\n\r\n```typescript\r\nimport db = require('db');\r\nimport Query = db.Query;\r\nimport Database = db.Database;\r\nimport Transaction = db.Transaction;\r\nimport Pool = db.Pool; // half of my screen is imports already. need to buy larger screen.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/69041269","html_url":"https://github.com/Microsoft/TypeScript/issues/1563#issuecomment-69041269","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1563","id":69041269,"user":{"login":"spion","id":502412,"avatar_url":"https://avatars.githubusercontent.com/u/502412?v=3","gravatar_id":"","url":"https://api.github.com/users/spion","html_url":"https://github.com/spion","followers_url":"https://api.github.com/users/spion/followers","following_url":"https://api.github.com/users/spion/following{/other_user}","gists_url":"https://api.github.com/users/spion/gists{/gist_id}","starred_url":"https://api.github.com/users/spion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spion/subscriptions","organizations_url":"https://api.github.com/users/spion/orgs","repos_url":"https://api.github.com/users/spion/repos","events_url":"https://api.github.com/users/spion/events{/privacy}","received_events_url":"https://api.github.com/users/spion/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T15:52:08Z","updated_at":"2015-01-07T15:52:08Z","body":"@danquirk TypeScript import syntax isn't valid ES6 import syntax. There is no \"=\" for example. Supporting ES6 modules is an entirely different feature. And even if destructuring is implemented for ES6 modules, it would work entirely different from AMD and CommonJS modules. \r\n\r\nI guess you'd rather implement this together with ES6 module support?"}}