{"action":"opened","issue":{"url":"https://api.github.com/repos/developit/preact/issues/1164","repository_url":"https://api.github.com/repos/developit/preact","labels_url":"https://api.github.com/repos/developit/preact/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact/issues/1164/comments","events_url":"https://api.github.com/repos/developit/preact/issues/1164/events","html_url":"https://github.com/developit/preact/issues/1164","id":339272859,"node_id":"MDU6SXNzdWUzMzkyNzI4NTk=","number":1164,"title":"unable to type render prop arguments for children","user":{"login":"malbernaz","id":10574149,"node_id":"MDQ6VXNlcjEwNTc0MTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/10574149?v=4","gravatar_id":"","url":"https://api.github.com/users/malbernaz","html_url":"https://github.com/malbernaz","followers_url":"https://api.github.com/users/malbernaz/followers","following_url":"https://api.github.com/users/malbernaz/following{/other_user}","gists_url":"https://api.github.com/users/malbernaz/gists{/gist_id}","starred_url":"https://api.github.com/users/malbernaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malbernaz/subscriptions","organizations_url":"https://api.github.com/users/malbernaz/orgs","repos_url":"https://api.github.com/users/malbernaz/repos","events_url":"https://api.github.com/users/malbernaz/events{/privacy}","received_events_url":"https://api.github.com/users/malbernaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T00:39:49Z","updated_at":"2018-07-09T00:39:49Z","closed_at":null,"author_association":"NONE","body":"```tsx\r\ninterface Foo {\r\n  bar: string\r\n} \r\n\r\ntype Props = {\r\n  children: (renderProps: Foo) => JSX.Element\r\n}\r\n\r\nclass Parent extends Component<Props> { /* render props implementation */ }\r\n\r\nconst Child: FunctionalComponent = () => (\r\n  <Parent>\r\n    {/* not typed */}\r\n    {({ bar }) => return <div />}\r\n  </Parent>\r\n)\r\n```\r\n\r\nFor some reason children render arguments can't be typed. It works if implemented with another attribute (eg: `render`)."}}
{"actor":{"display_login":"malbernaz"}}