{"action":"created","issue":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/1270","repository_url":"https://api.github.com/repos/styled-components/styled-components","labels_url":"https://api.github.com/repos/styled-components/styled-components/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/styled-components/issues/1270/comments","events_url":"https://api.github.com/repos/styled-components/styled-components/issues/1270/events","html_url":"https://github.com/styled-components/styled-components/issues/1270","id":268785016,"node_id":"MDU6SXNzdWUyNjg3ODUwMTY=","number":1270,"title":"[flow] function call function cannot be called on any member of intersection type intersection","user":{"login":"IljaDaderko","id":3154053,"node_id":"MDQ6VXNlcjMxNTQwNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3154053?v=4","gravatar_id":"","url":"https://api.github.com/users/IljaDaderko","html_url":"https://github.com/IljaDaderko","followers_url":"https://api.github.com/users/IljaDaderko/followers","following_url":"https://api.github.com/users/IljaDaderko/following{/other_user}","gists_url":"https://api.github.com/users/IljaDaderko/gists{/gist_id}","starred_url":"https://api.github.com/users/IljaDaderko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IljaDaderko/subscriptions","organizations_url":"https://api.github.com/users/IljaDaderko/orgs","repos_url":"https://api.github.com/users/IljaDaderko/repos","events_url":"https://api.github.com/users/IljaDaderko/events{/privacy}","received_events_url":"https://api.github.com/users/IljaDaderko/received_events","type":"User","site_admin":false},"labels":[{"id":425493749,"node_id":"MDU6TGFiZWw0MjU0OTM3NDk=","url":"https://api.github.com/repos/styled-components/styled-components/labels/bug%20:bug:","name":"bug :bug:","color":"b60205","default":false},{"id":816261638,"node_id":"MDU6TGFiZWw4MTYyNjE2Mzg=","url":"https://api.github.com/repos/styled-components/styled-components/labels/typings%20:wrench:","name":"typings :wrench:","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-10-26T14:33:34Z","updated_at":"2018-09-22T20:41:48Z","closed_at":"2018-09-01T07:03:09Z","author_association":"CONTRIBUTOR","body":"<!--\r\nThank you for contributing!\r\n\r\nHave a usage question?\r\n======================\r\nPlease search for old issues before creating a new one for your question. If it's a simple usage question, be aware that this isn't the best place to ask, and people will have a hard time finding your question as well. Before you ask a question, here are some resources to get help first:\r\n\r\n- Read the docs: https://www.styled-components.com/docs\r\n- Look for/ask questions on stack overflow: https://stackoverflow.com/questions/ask?tags=styled-components\r\n- Start a thread on our Spectrum help channel: https://spectrum.chat/styled-components/help\r\n- Ask in chat: https://gitter.im/styled-components/styled-components\r\n\r\nThink you found a bug?\r\n======================\r\nThe best bug report is a failing test in the repository as a pull request.\r\nOtherwise, please use the \"BUG REPORT\" template below and provide a reproduction.\r\nA reproduction might be a snippet of code, or a webpackbin/codesandbox link, or even a repository.\r\n\r\nHave a feature request?\r\n=======================\r\nRemove the template from below and provide thoughtful commentary *and code samples* on what this feature means for your product.\r\nWhat will it allow you to do that you can't do today?\r\nHow will it make current work-arounds straightforward?\r\nWhat potential bugs and edge cases does it help to avoid?\r\nPlease keep it product-centric.\r\n-->\r\n\r\n<!-- BUG TEMPLATE -->\r\n## Version\r\n2.2.2\r\n<!-- Please add the babel-plugin-styled-components version and options if applicable -->\r\n\r\n## Steps to reproduce\r\n1) Implement flow\r\n2) `flow-typed install styled-components@2.2.2`\r\n\r\n## Expected Behavior\r\nShould work without abnormal flow errors\r\n\r\n## Actual Behavior\r\nReceiving this error\r\n```\r\n function call function cannot be called on any member of intersection type intersection\r\n```\r\nwhen doing something like this\r\n```\r\nconst SView = styled(View)`\r\n  height: 100%;\r\n  background-color: ${props => props.color};\r\n`;\r\n```\r\n\r\nerror specifically highlights this line `const SView = styled(View)` when I click through I am referred to this rule in styled-component typed package\r\n\r\n```\r\n  declare module.exports: {\r\n    $call: $npm$styledComponents$Call<NativeComponentListKeys>,\r\n```"},"comment":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/comments/423771908","html_url":"https://github.com/styled-components/styled-components/issues/1270#issuecomment-423771908","issue_url":"https://api.github.com/repos/styled-components/styled-components/issues/1270","id":423771908,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzc3MTkwOA==","user":{"login":"probablyup","id":570070,"node_id":"MDQ6VXNlcjU3MDA3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/570070?v=4","gravatar_id":"","url":"https://api.github.com/users/probablyup","html_url":"https://github.com/probablyup","followers_url":"https://api.github.com/users/probablyup/followers","following_url":"https://api.github.com/users/probablyup/following{/other_user}","gists_url":"https://api.github.com/users/probablyup/gists{/gist_id}","starred_url":"https://api.github.com/users/probablyup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probablyup/subscriptions","organizations_url":"https://api.github.com/users/probablyup/orgs","repos_url":"https://api.github.com/users/probablyup/repos","events_url":"https://api.github.com/users/probablyup/events{/privacy}","received_events_url":"https://api.github.com/users/probablyup/received_events","type":"User","site_admin":false},"created_at":"2018-09-22T20:41:48Z","updated_at":"2018-09-22T20:41:48Z","author_association":"CONTRIBUTOR","body":"Rather than complain that you have to use a suppression, it would be more productive to offer to help fix it on flow-typed. "}}
{"actor":{"display_login":"probablyup"}}