{"action":"created","issue":{"url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/8","labels_url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/8/comments","events_url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/8/events","html_url":"https://github.com/lukescott/es-type-hinting/issues/8","id":86365118,"number":8,"title":"Are classes new types","user":{"login":"Naddiseo","id":115951,"avatar_url":"https://avatars.githubusercontent.com/u/115951?v=3","gravatar_id":"","url":"https://api.github.com/users/Naddiseo","html_url":"https://github.com/Naddiseo","followers_url":"https://api.github.com/users/Naddiseo/followers","following_url":"https://api.github.com/users/Naddiseo/following{/other_user}","gists_url":"https://api.github.com/users/Naddiseo/gists{/gist_id}","starred_url":"https://api.github.com/users/Naddiseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naddiseo/subscriptions","organizations_url":"https://api.github.com/users/Naddiseo/orgs","repos_url":"https://api.github.com/users/Naddiseo/repos","events_url":"https://api.github.com/users/Naddiseo/events{/privacy}","received_events_url":"https://api.github.com/users/Naddiseo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T23:08:50Z","updated_at":"2015-06-09T00:25:54Z","closed_at":null,"body":"```javascript\r\nclass A {}\r\n\r\n// What would be the type hint for this function?\r\nfunction makeA() { return new A(); }\r\n// What about this?\r\nfunction getA() { return A; }\r\n```"},"comment":{"url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/comments/110180351","html_url":"https://github.com/lukescott/es-type-hinting/issues/8#issuecomment-110180351","issue_url":"https://api.github.com/repos/lukescott/es-type-hinting/issues/8","id":110180351,"user":{"login":"lukescott","id":486224,"avatar_url":"https://avatars.githubusercontent.com/u/486224?v=3","gravatar_id":"","url":"https://api.github.com/users/lukescott","html_url":"https://github.com/lukescott","followers_url":"https://api.github.com/users/lukescott/followers","following_url":"https://api.github.com/users/lukescott/following{/other_user}","gists_url":"https://api.github.com/users/lukescott/gists{/gist_id}","starred_url":"https://api.github.com/users/lukescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukescott/subscriptions","organizations_url":"https://api.github.com/users/lukescott/orgs","repos_url":"https://api.github.com/users/lukescott/repos","events_url":"https://api.github.com/users/lukescott/events{/privacy}","received_events_url":"https://api.github.com/users/lukescott/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T00:25:54Z","updated_at":"2015-06-09T00:25:54Z","body":"```javascript\r\nclass A {}\r\nfunction makeA() A { return new A(); }\r\nfunction getA() Function { return A; }\r\n```\r\nThe `getA` class is a little confusing. I'm not sure it would get a lot of use though."}}