{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/5881","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/5881/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/5881/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/5881/events","html_url":"https://github.com/facebook/flow/issues/5881","id":300525836,"number":5881,"title":"Assign default value null in function args destructuring if expected number","user":{"login":"MrEfrem","id":3146234,"avatar_url":"https://avatars0.githubusercontent.com/u/3146234?v=4","gravatar_id":"","url":"https://api.github.com/users/MrEfrem","html_url":"https://github.com/MrEfrem","followers_url":"https://api.github.com/users/MrEfrem/followers","following_url":"https://api.github.com/users/MrEfrem/following{/other_user}","gists_url":"https://api.github.com/users/MrEfrem/gists{/gist_id}","starred_url":"https://api.github.com/users/MrEfrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrEfrem/subscriptions","organizations_url":"https://api.github.com/users/MrEfrem/orgs","repos_url":"https://api.github.com/users/MrEfrem/repos","events_url":"https://api.github.com/users/MrEfrem/events{/privacy}","received_events_url":"https://api.github.com/users/MrEfrem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T07:54:02Z","updated_at":"2018-02-28T13:52:26Z","closed_at":"2018-02-28T13:52:26Z","author_association":"NONE","body":"```\r\nfunction foo({ x = null }: { x: ?number }) {\r\n  console.log(x);  \r\n}\r\n```\r\n```\r\nfunction foo({ x = null }: { x: ?number }) {\r\n                  ^ null or undefined [1] is incompatible with number [2].\r\nReferences:\r\n3: function foo({ x = null }: { x: ?number }) {\r\n                                   ^ [1]\r\n3: function foo({ x = null }: { x: ?number }) {\r\n                                    ^ [2]\r\n3: function foo({ x = null }: { x: ?number }) {\r\n                      ^ null [1] is incompatible with number [2].\r\nReferences:\r\n3: function foo({ x = null }: { x: ?number }) {\r\n                      ^ [1]\r\n3: function foo({ x = null }: { x: ?number }) {\r\n                                    ^ [2]\r\n```\r\nhttps://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVUCuA7AxgFwEs5swo44AKAbzAA8wBeMbTGGMAXwC4xa7eAflYBbAEYBTAE5cAlH1RgwuEgGc4MCQDp4Ac0p1ZAbiWpO6VEA\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/369245277","html_url":"https://github.com/facebook/flow/issues/5881#issuecomment-369245277","issue_url":"https://api.github.com/repos/facebook/flow/issues/5881","id":369245277,"user":{"login":"MrEfrem","id":3146234,"avatar_url":"https://avatars0.githubusercontent.com/u/3146234?v=4","gravatar_id":"","url":"https://api.github.com/users/MrEfrem","html_url":"https://github.com/MrEfrem","followers_url":"https://api.github.com/users/MrEfrem/followers","following_url":"https://api.github.com/users/MrEfrem/following{/other_user}","gists_url":"https://api.github.com/users/MrEfrem/gists{/gist_id}","starred_url":"https://api.github.com/users/MrEfrem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrEfrem/subscriptions","organizations_url":"https://api.github.com/users/MrEfrem/orgs","repos_url":"https://api.github.com/users/MrEfrem/repos","events_url":"https://api.github.com/users/MrEfrem/events{/privacy}","received_events_url":"https://api.github.com/users/MrEfrem/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T13:52:26Z","updated_at":"2018-02-28T13:52:26Z","author_association":"NONE","body":"https://github.com/facebook/flow/issues/183"}}
{"actor":{"display_login":"MrEfrem"}}