{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScriptSamples/issues/10","labels_url":"https://api.github.com/repos/Microsoft/TypeScriptSamples/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScriptSamples/issues/10/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScriptSamples/issues/10/events","html_url":"https://github.com/Microsoft/TypeScriptSamples/issues/10","id":66250406,"number":10,"title":"requiring exported classes","user":{"login":"timoweiss","id":5221667,"avatar_url":"https://avatars.githubusercontent.com/u/5221667?v=3","gravatar_id":"","url":"https://api.github.com/users/timoweiss","html_url":"https://github.com/timoweiss","followers_url":"https://api.github.com/users/timoweiss/followers","following_url":"https://api.github.com/users/timoweiss/following{/other_user}","gists_url":"https://api.github.com/users/timoweiss/gists{/gist_id}","starred_url":"https://api.github.com/users/timoweiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoweiss/subscriptions","organizations_url":"https://api.github.com/users/timoweiss/orgs","repos_url":"https://api.github.com/users/timoweiss/repos","events_url":"https://api.github.com/users/timoweiss/events{/privacy}","received_events_url":"https://api.github.com/users/timoweiss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScriptSamples/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-03T23:41:40Z","updated_at":"2015-04-04T08:15:15Z","closed_at":"2015-04-04T08:15:15Z","body":"Hey, i'm looking for a sample which imports classes from separated files.\r\nWhen i do:\r\n\r\n```javascript\r\nexport class MyClass {\r\n    constructor() {\r\n    }\r\n}\r\n```\r\nAnd then in another file:\r\n\r\n```javascript\r\nimport MyClass = require('./path/to/classes/MyClass')\r\n```\r\nTo create an instance of `MyClass`, I need to call \r\n```javascript\r\nnew MyClass.MyClass()\r\n```\r\nAnd not simply `new MyClass()`.\r\nIs there any way to fix this?\r\n\r\nThanks in advance"}}