{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6622","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6622/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6622/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6622/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6622","id":128817680,"number":6622,"title":"export types not found","user":{"login":"amcdnl","id":227909,"avatar_url":"https://avatars.githubusercontent.com/u/227909?v=3","gravatar_id":"","url":"https://api.github.com/users/amcdnl","html_url":"https://github.com/amcdnl","followers_url":"https://api.github.com/users/amcdnl/followers","following_url":"https://api.github.com/users/amcdnl/following{/other_user}","gists_url":"https://api.github.com/users/amcdnl/gists{/gist_id}","starred_url":"https://api.github.com/users/amcdnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcdnl/subscriptions","organizations_url":"https://api.github.com/users/amcdnl/orgs","repos_url":"https://api.github.com/users/amcdnl/repos","events_url":"https://api.github.com/users/amcdnl/events{/privacy}","received_events_url":"https://api.github.com/users/amcdnl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T13:19:47Z","updated_at":"2016-01-26T13:19:47Z","closed_at":null,"body":"This might be a tad 'anti-typescript' but figured I throw it out anyway. I have a function that reads a array and dynamically creates exports like so:\r\n\r\n```\r\nconst methods = ['head', 'options', 'get', 'post', 'put', 'patch', 'del', 'delete', 'all']\r\nmethods.forEach(method => {\r\n  let methName = method.charAt(0).toUpperCase() + method.slice(1);\r\n  exports[`http${methName}`] = route.bind(null, method);\r\n  //exports[method] = route.bind(null, method);\r\n});\r\n```\r\n\r\nFor obvs reasons, TypeScripts complains on compiling about this:\r\n\r\n```\r\n\u001B[100;30m\r\nsrc/api/ApplicationController.ts(1,22): error TS2305: Module '\"src/common/routing\"' has no exported member 'httpGet'.\r\n```\r\n\r\nIs there anything on the roadmap to do this type of dynamic / functional exports?"}}