{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/1360","repository_url":"https://api.github.com/repos/facebook/immutable-js","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/1360/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/1360/events","html_url":"https://github.com/facebook/immutable-js/issues/1360","id":263292201,"number":1360,"title":"PlainObjInput Flow Type Errors in v4.0.0-rc.4 or later.","user":{"login":"devanecondition","id":11761834,"avatar_url":"https://avatars3.githubusercontent.com/u/11761834?v=4","gravatar_id":"","url":"https://api.github.com/users/devanecondition","html_url":"https://github.com/devanecondition","followers_url":"https://api.github.com/users/devanecondition/followers","following_url":"https://api.github.com/users/devanecondition/following{/other_user}","gists_url":"https://api.github.com/users/devanecondition/gists{/gist_id}","starred_url":"https://api.github.com/users/devanecondition/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devanecondition/subscriptions","organizations_url":"https://api.github.com/users/devanecondition/orgs","repos_url":"https://api.github.com/users/devanecondition/repos","events_url":"https://api.github.com/users/devanecondition/events{/privacy}","received_events_url":"https://api.github.com/users/devanecondition/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-05T23:00:02Z","updated_at":"2017-10-13T23:44:27Z","closed_at":"2017-10-11T00:40:02Z","author_association":"NONE","body":"Versions v4.0.0-rc.4+ are causing new flow errors for me based around the `PlainObjInput` type.\r\n\r\n### What happened\r\n\r\nUsing `flow-bin@v0.46.0`, upgrading to rc4 or higher is causing flow errors related to passing object literals to the Map object.\r\n\r\n```\r\nglobalState: Map({\r\n  loggedInUser: state.getIn(['globalState', 'loggedInUser']),\r\n})\r\n```\r\n\r\nProduces errors:\r\n\r\n```\r\nstatic <K, V>(collection: Iterable<[K, V]>): Map<K, V>;\r\n                                   ^^^^^^^^^^^^^^^^ property `@@iterator` of $Iterable. Property not found in. See: node_modules/immutable/dist/immutable.js.flow:788` `^ object literal\r\n```\r\n\r\n```\r\nError:\r\n  789:   static <K, V>(obj?: PlainObjInput<K, V>): Map<K, V>;\r\n                             ^^^^^^^^^^^^^^^^^^^ property `__proto__`. Property not found in. See: node_modules/immutable/dist/immutable.js.flow:789` `^ object literal\r\n```\r\n\r\n\r\n### How to reproduce\r\n\r\nUsing `flow-bin@v0.46.0` (or later) and `v4.0.0-rc.4` (or later), create a `Map` and pass it an object literal.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/comments/336591595","html_url":"https://github.com/facebook/immutable-js/issues/1360#issuecomment-336591595","issue_url":"https://api.github.com/repos/facebook/immutable-js/issues/1360","id":336591595,"user":{"login":"leebyron","id":50130,"avatar_url":"https://avatars3.githubusercontent.com/u/50130?v=4","gravatar_id":"","url":"https://api.github.com/users/leebyron","html_url":"https://github.com/leebyron","followers_url":"https://api.github.com/users/leebyron/followers","following_url":"https://api.github.com/users/leebyron/following{/other_user}","gists_url":"https://api.github.com/users/leebyron/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyron/subscriptions","organizations_url":"https://api.github.com/users/leebyron/orgs","repos_url":"https://api.github.com/users/leebyron/repos","events_url":"https://api.github.com/users/leebyron/events{/privacy}","received_events_url":"https://api.github.com/users/leebyron/received_events","type":"User","site_admin":false},"created_at":"2017-10-13T23:44:27Z","updated_at":"2017-10-13T23:44:27Z","author_association":"MEMBER","body":"@jkomyno - please open a new issue with additional details. We've been running tests with that version and haven't seen the issue before, so there may be something different happening for you"}}
{"actor":{"display_login":"leebyron"}}