{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/4175","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/4175/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/4175/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/4175/events","html_url":"https://github.com/facebook/flow/pull/4175","id":236029663,"node_id":"MDExOlB1bGxSZXF1ZXN0MTI1NzA3OTEy","number":4175,"title":"Use SingletonStrT in case of const literal declarations","user":{"login":"agentcooper","id":794591,"node_id":"MDQ6VXNlcjc5NDU5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/794591?v=4","gravatar_id":"","url":"https://api.github.com/users/agentcooper","html_url":"https://github.com/agentcooper","followers_url":"https://api.github.com/users/agentcooper/followers","following_url":"https://api.github.com/users/agentcooper/following{/other_user}","gists_url":"https://api.github.com/users/agentcooper/gists{/gist_id}","starred_url":"https://api.github.com/users/agentcooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentcooper/subscriptions","organizations_url":"https://api.github.com/users/agentcooper/orgs","repos_url":"https://api.github.com/users/agentcooper/repos","events_url":"https://api.github.com/users/agentcooper/events{/privacy}","received_events_url":"https://api.github.com/users/agentcooper/received_events","type":"User","site_admin":false},"labels":[{"id":196859323,"node_id":"MDU6TGFiZWwxOTY4NTkzMjM=","url":"https://api.github.com/repos/facebook/flow/labels/CLA%20Signed","name":"CLA Signed","color":"eeeeee","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-06-14T22:38:58Z","updated_at":"2018-06-15T08:23:22Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/4175","html_url":"https://github.com/facebook/flow/pull/4175","diff_url":"https://github.com/facebook/flow/pull/4175.diff","patch_url":"https://github.com/facebook/flow/pull/4175.patch"},"body":"```\r\n// @flow\r\n\r\nconst x = 'X';\r\nconst y: typeof x = 'Y';\r\n```\r\n\r\nBefore: no errors.\r\n\r\nAfter:\r\n```\r\n  4: const y: typeof x = 'Y';\r\n                         ^^^ string. Expected string literal `X`, got `Y` instead\r\n  4: const y: typeof x = 'Y';\r\n              ^^^^^^^^ string\r\n```\r\n\r\nFixes https://github.com/facebook/flow/issues/2639.\r\n\r\nThis is my first attempt to dive into Flow codebase, not sure if the implementation is sane. I would like to get some comments on this. Will add tests if everything is ok."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/397550082","html_url":"https://github.com/facebook/flow/pull/4175#issuecomment-397550082","issue_url":"https://api.github.com/repos/facebook/flow/issues/4175","id":397550082,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU1MDA4Mg==","user":{"login":"agentcooper","id":794591,"node_id":"MDQ6VXNlcjc5NDU5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/794591?v=4","gravatar_id":"","url":"https://api.github.com/users/agentcooper","html_url":"https://github.com/agentcooper","followers_url":"https://api.github.com/users/agentcooper/followers","following_url":"https://api.github.com/users/agentcooper/following{/other_user}","gists_url":"https://api.github.com/users/agentcooper/gists{/gist_id}","starred_url":"https://api.github.com/users/agentcooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentcooper/subscriptions","organizations_url":"https://api.github.com/users/agentcooper/orgs","repos_url":"https://api.github.com/users/agentcooper/repos","events_url":"https://api.github.com/users/agentcooper/events{/privacy}","received_events_url":"https://api.github.com/users/agentcooper/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T08:23:21Z","updated_at":"2018-06-15T08:23:21Z","author_association":"CONTRIBUTOR","body":"@mrkev I'll try to update the code over the weekend"}}
{"actor":{"display_login":"agentcooper"}}