{"action":"created","issue":{"url":"https://api.github.com/repos/trueadm/inferno/issues/596","repository_url":"https://api.github.com/repos/trueadm/inferno","labels_url":"https://api.github.com/repos/trueadm/inferno/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/trueadm/inferno/issues/596/comments","events_url":"https://api.github.com/repos/trueadm/inferno/issues/596/events","html_url":"https://github.com/trueadm/inferno/issues/596","id":195943612,"number":596,"title":"Typescript issue with default imports","user":{"login":"soyuka","id":1321971,"avatar_url":"https://avatars.githubusercontent.com/u/1321971?v=3","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-15T23:26:34Z","updated_at":"2016-12-16T01:32:09Z","closed_at":null,"body":"Hi,\r\n\r\n```javascript\r\nimport createElement from 'inferno-create-element'\r\nconsole.log(createElement)\r\n```\r\nTranspiles to :\r\n\r\n```javascript\r\nconst inferno_create_element_1 = require('inferno-create-element');\r\nconsole.log(inferno_create_element_1.default);\r\n```\r\n\r\nWhich outputs:\r\n\r\n```javascript\r\nundefined\r\n```\r\n\r\nIf you log `inferno_create_element_1` (without the `default` key), you will get the corresponding function. \r\n\r\nThe same goes for `Component`:\r\n\r\nI tried to import with the following (because of the issue above):\r\n\r\n```javascript\r\nimport * as Component from 'inferno-component'\r\nconsole.log(Component)\r\nexport class Foo extends Component {}\r\n```\r\n\r\nYou can now get the Component through, but the typescript compiler isn't happy about it not beeing a constructor:\r\n\r\n```\r\nerror TS2507: Type 'typeof 'inferno-component'' is not a constructor function type.\r\n```\r\n\r\n**Inferno Metadata**\r\n- typescript 2.1.4\r\n- inferno@1.0.0-beta34\r\n- [My tsconfig](https://gist.github.com/soyuka/503e08949399217881779551d7160848) target is es6, module is commonjs\r\n\r\nRelated: #592\r\n\r\n-----\r\n\r\nMaybe another linked issue:\r\nWhen using `most.js`, without removing the most declaration in `inferno.d.ts` I have the following error:\r\n\r\n```\r\nerror TS2305: Module ''most'' has no exported member 'Stream'.\r\n```\r\n\r\nWhich is true because `inferno.d.ts` only specifies 3 functions for most. If I remove the declaration the compiler takes `node_modules/most/types-definition/most.d.ts` and compiles.\r\n"},"comment":{"url":"https://api.github.com/repos/trueadm/inferno/issues/comments/267494315","html_url":"https://github.com/trueadm/inferno/issues/596#issuecomment-267494315","issue_url":"https://api.github.com/repos/trueadm/inferno/issues/596","id":267494315,"user":{"login":"LukeSheard","id":9877376,"avatar_url":"https://avatars.githubusercontent.com/u/9877376?v=3","gravatar_id":"","url":"https://api.github.com/users/LukeSheard","html_url":"https://github.com/LukeSheard","followers_url":"https://api.github.com/users/LukeSheard/followers","following_url":"https://api.github.com/users/LukeSheard/following{/other_user}","gists_url":"https://api.github.com/users/LukeSheard/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeSheard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeSheard/subscriptions","organizations_url":"https://api.github.com/users/LukeSheard/orgs","repos_url":"https://api.github.com/users/LukeSheard/repos","events_url":"https://api.github.com/users/LukeSheard/events{/privacy}","received_events_url":"https://api.github.com/users/LukeSheard/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T01:32:09Z","updated_at":"2016-12-16T01:32:09Z","body":"I'm going to close this and track changed to this file in #592 "}}
{"actor":{"display_login":"LukeSheard"}}