{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-docgen/issues/48","labels_url":"https://api.github.com/repos/reactjs/react-docgen/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-docgen/issues/48/comments","events_url":"https://api.github.com/repos/reactjs/react-docgen/issues/48/events","html_url":"https://github.com/reactjs/react-docgen/pull/48","id":125068789,"number":48,"title":"Support for flow types","user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactjs/react-docgen/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-01-05T22:44:18Z","updated_at":"2016-01-29T21:36:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reactjs/react-docgen/pulls/48","html_url":"https://github.com/reactjs/react-docgen/pull/48","diff_url":"https://github.com/reactjs/react-docgen/pull/48.diff","patch_url":"https://github.com/reactjs/react-docgen/pull/48.patch"},"body":"I started working on adding support for flow types.\r\n\r\nSo far I only tried to get it working for classes, and it already works nicely for this usecase, but only for string type and declared types. The code although is far away from nice yet. It also needs a patched version of ast-types, which I will create a PR also soon.\r\n\r\nI opened this PR already so that interested people can join and already have a look and maybe give feedback.\r\n\r\nWill fix #31\r\n\r\nThis needs to be done:\r\n\r\n- [x] support es6 classes\r\n- [x] ~~support createClass()~~\r\n- [x] support stateless components()\r\n- [x] support all types from flow\r\n  - [x] primitive types\r\n  - [x] class types\r\n  - [x] object signature\r\n  - [x] literal types\r\n  - [x] function signature\r\n  - [x] callable-object/function-object signature\r\n  - [x] maybe types\r\n  - [x] union\r\n  - [x] intersection\r\n- [x] support inline type definitions\r\n- [x] support declared type definitions\r\n- [x] extract description from type\r\n- [x] ~~handle imported type definitions (not really sure if we can do anything about that)~~\r\n- [x] add tests\r\n- [x] update ast-types to support Identifiers to TypeAlias\r\n- [x] make code clean :)\r\n- [x] adapt Readme"},"comment":{"url":"https://api.github.com/repos/reactjs/react-docgen/issues/comments/176979543","html_url":"https://github.com/reactjs/react-docgen/pull/48#issuecomment-176979543","issue_url":"https://api.github.com/repos/reactjs/react-docgen/issues/48","id":176979543,"user":{"login":"danez","id":231804,"avatar_url":"https://avatars.githubusercontent.com/u/231804?v=3","gravatar_id":"","url":"https://api.github.com/users/danez","html_url":"https://github.com/danez","followers_url":"https://api.github.com/users/danez/followers","following_url":"https://api.github.com/users/danez/following{/other_user}","gists_url":"https://api.github.com/users/danez/gists{/gist_id}","starred_url":"https://api.github.com/users/danez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danez/subscriptions","organizations_url":"https://api.github.com/users/danez/orgs","repos_url":"https://api.github.com/users/danez/repos","events_url":"https://api.github.com/users/danez/events{/privacy}","received_events_url":"https://api.github.com/users/danez/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T21:36:31Z","updated_at":"2016-01-29T21:36:31Z","body":"Okay I removed them now."}}