{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/419","repository_url":"https://api.github.com/repos/apollostack/apollo-client","labels_url":"https://api.github.com/repos/apollostack/apollo-client/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/apollo-client/issues/419/comments","events_url":"https://api.github.com/repos/apollostack/apollo-client/issues/419/events","html_url":"https://github.com/apollostack/apollo-client/pull/419","id":166219408,"number":419,"title":"Update Typescript to 2.0","user":{"login":"mquandalle","id":1730702,"avatar_url":"https://avatars.githubusercontent.com/u/1730702?v=3","gravatar_id":"","url":"https://api.github.com/users/mquandalle","html_url":"https://github.com/mquandalle","followers_url":"https://api.github.com/users/mquandalle/followers","following_url":"https://api.github.com/users/mquandalle/following{/other_user}","gists_url":"https://api.github.com/users/mquandalle/gists{/gist_id}","starred_url":"https://api.github.com/users/mquandalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mquandalle/subscriptions","organizations_url":"https://api.github.com/users/mquandalle/orgs","repos_url":"https://api.github.com/users/mquandalle/repos","events_url":"https://api.github.com/users/mquandalle/events{/privacy}","received_events_url":"https://api.github.com/users/mquandalle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apollostack/apollo-client/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T23:54:18Z","updated_at":"2016-07-19T00:37:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apollostack/apollo-client/pulls/419","html_url":"https://github.com/apollostack/apollo-client/pull/419","diff_url":"https://github.com/apollostack/apollo-client/pull/419.diff","patch_url":"https://github.com/apollostack/apollo-client/pull/419.patch"},"body":"The soon-to-be-released v2.0 of TypeScript will bring a lot of new cool features. Cherry-picking the releases notes, I believe the apollo-client will especially benefit from the discriminated union types (https://github.com/Microsoft/TypeScript/pull/9163), the smarter flow analysis, and the explicit `null` and `undefined` checks.\r\n\r\nThis PR updates the Typescript compiler to use the v2.0-[beta](https://blogs.msdn.microsoft.com/typescript/2016/07/11/announcing-typescript-2-0-beta/). There is one logic error detected by the new flow analysis:\r\n\r\n```\r\n106             result: action.result,\r\n                               ~~~~~~\r\n\r\nsrc/data/store.ts(106,28): error TS2339: Property 'result' does not exist on type 'QueryResultAction | QueryErrorAction | QueryInitAction | QueryResultClientAction | QueryStopActio...'.\r\n```\r\n\r\nI haven’t opt-in the `strictNullChecks` option as I’m not that comfortable with the code base, but it sure would be great if someone else could do it."},"comment":{"url":"https://api.github.com/repos/apollostack/apollo-client/issues/comments/233499711","html_url":"https://github.com/apollostack/apollo-client/pull/419#issuecomment-233499711","issue_url":"https://api.github.com/repos/apollostack/apollo-client/issues/419","id":233499711,"user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T00:37:59Z","updated_at":"2016-07-19T00:37:59Z","body":"Thanks for doing this! I'll check it out sometime soon."}}
{"actor":{"display_login":"stubailo"}}