{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/10988","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/10988/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/10988/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/10988/events","html_url":"https://github.com/Microsoft/TypeScript/issues/10988","id":177827787,"number":10988,"title":"Importing modules with loaders extension","user":{"login":"whitecolor","id":736697,"avatar_url":"https://avatars.githubusercontent.com/u/736697?v=3","gravatar_id":"","url":"https://api.github.com/users/whitecolor","html_url":"https://github.com/whitecolor","followers_url":"https://api.github.com/users/whitecolor/followers","following_url":"https://api.github.com/users/whitecolor/following{/other_user}","gists_url":"https://api.github.com/users/whitecolor/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecolor/subscriptions","organizations_url":"https://api.github.com/users/whitecolor/orgs","repos_url":"https://api.github.com/users/whitecolor/repos","events_url":"https://api.github.com/users/whitecolor/events{/privacy}","received_events_url":"https://api.github.com/users/whitecolor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-19T16:11:21Z","updated_at":"2016-09-21T17:07:52Z","closed_at":"2016-09-20T22:55:50Z","body":"Using TS 2.1dev\r\n\r\nhttps://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#wildcard-character-in-module-names\r\n\r\nSay in may code I have\r\n```ts\r\nimport something from 'loader!./something'\r\n```\r\nIn ts 2 it I can do\r\n```\r\ndeclare module \"loader!*\" {\r\n    const value: any;\r\n    export default value;\r\n}\r\n```\r\n\r\nBut is it possible somehow to make this import behave like there is just no `loader!` part so it would import just exported from particular './something'?"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/248677973","html_url":"https://github.com/Microsoft/TypeScript/issues/10988#issuecomment-248677973","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/10988","id":248677973,"user":{"login":"whitecolor","id":736697,"avatar_url":"https://avatars.githubusercontent.com/u/736697?v=3","gravatar_id":"","url":"https://api.github.com/users/whitecolor","html_url":"https://github.com/whitecolor","followers_url":"https://api.github.com/users/whitecolor/followers","following_url":"https://api.github.com/users/whitecolor/following{/other_user}","gists_url":"https://api.github.com/users/whitecolor/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecolor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecolor/subscriptions","organizations_url":"https://api.github.com/users/whitecolor/orgs","repos_url":"https://api.github.com/users/whitecolor/repos","events_url":"https://api.github.com/users/whitecolor/events{/privacy}","received_events_url":"https://api.github.com/users/whitecolor/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T17:07:52Z","updated_at":"2016-09-21T17:07:52Z","body":"> in a global definition file:\r\n\r\nThe thing is that I have many modules with the same line (each imports its own version of `./something` relative to itself)\r\n```ts\r\nimport something from 'loader!./something' \r\n```\r\nSo single global definition won't work"}}
{"actor":{"display_login":"whitecolor"}}