{"action":"created","issue":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/877","repository_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine","labels_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/877/comments","events_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/877/events","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/pull/877","id":160793079,"number":877,"title":"TypeScript enhancements","user":{"login":"shaddockh","id":2951562,"avatar_url":"https://avatars.githubusercontent.com/u/2951562?v=3","gravatar_id":"","url":"https://api.github.com/users/shaddockh","html_url":"https://github.com/shaddockh","followers_url":"https://api.github.com/users/shaddockh/followers","following_url":"https://api.github.com/users/shaddockh/following{/other_user}","gists_url":"https://api.github.com/users/shaddockh/gists{/gist_id}","starred_url":"https://api.github.com/users/shaddockh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaddockh/subscriptions","organizations_url":"https://api.github.com/users/shaddockh/orgs","repos_url":"https://api.github.com/users/shaddockh/repos","events_url":"https://api.github.com/users/shaddockh/events{/privacy}","received_events_url":"https://api.github.com/users/shaddockh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-17T01:05:25Z","updated_at":"2016-06-22T20:37:22Z","closed_at":"2016-06-17T17:25:36Z","pull_request":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/pulls/877","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/pull/877","diff_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/pull/877.diff","patch_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/pull/877.patch"},"body":"This PR adds some additional overloads to make some APIs work better as generics so that the resulting return value is auto-cast to the right type.  Namely:\r\n```\r\nResourceCache.getResource<T>\r\nResourceCache.getTempResource<T>\r\nResourceCache.getExistingResource<T>\r\nUI.getWidgetAt<T>\r\nUIWidget.getWidget<T>\r\n```\r\n\r\nThe other thing this PR does is allow for ```export default <classname>``` which is used in ```ES6``` and ```TypeScript``` which closes #845.  The project templates have been updated to use ```export default``` for the ```TypeScript``` projects as this is a cleaner and more preferable way of doing things.\r\n\r\n@JoshEngebretson can you double check the C++ changes?  They work, but I'm still getting my bearings in C++ and there could be a better way of handling that."},"comment":{"url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/comments/227868879","html_url":"https://github.com/AtomicGameEngine/AtomicGameEngine/pull/877#issuecomment-227868879","issue_url":"https://api.github.com/repos/AtomicGameEngine/AtomicGameEngine/issues/877","id":227868879,"user":{"login":"Type1J","id":413028,"avatar_url":"https://avatars.githubusercontent.com/u/413028?v=3","gravatar_id":"","url":"https://api.github.com/users/Type1J","html_url":"https://github.com/Type1J","followers_url":"https://api.github.com/users/Type1J/followers","following_url":"https://api.github.com/users/Type1J/following{/other_user}","gists_url":"https://api.github.com/users/Type1J/gists{/gist_id}","starred_url":"https://api.github.com/users/Type1J/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Type1J/subscriptions","organizations_url":"https://api.github.com/users/Type1J/orgs","repos_url":"https://api.github.com/users/Type1J/repos","events_url":"https://api.github.com/users/Type1J/events{/privacy}","received_events_url":"https://api.github.com/users/Type1J/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T20:37:22Z","updated_at":"2016-06-22T20:37:22Z","body":"Thanks @shaddockh! That's a great add."}}
{"actor":{"display_login":"Type1J"}}