{"action":"opened","issue":{"url":"https://api.github.com/repos/reactjs/react-docgen/issues/74","repository_url":"https://api.github.com/repos/reactjs/react-docgen","labels_url":"https://api.github.com/repos/reactjs/react-docgen/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-docgen/issues/74/comments","events_url":"https://api.github.com/repos/reactjs/react-docgen/issues/74/events","html_url":"https://github.com/reactjs/react-docgen/issues/74","id":151764456,"number":74,"title":"React.PropTypes.objectOf parsed as \"custom\"","user":{"login":"AlanBreck","id":1199820,"avatar_url":"https://avatars.githubusercontent.com/u/1199820?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanBreck","html_url":"https://github.com/AlanBreck","followers_url":"https://api.github.com/users/AlanBreck/followers","following_url":"https://api.github.com/users/AlanBreck/following{/other_user}","gists_url":"https://api.github.com/users/AlanBreck/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanBreck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanBreck/subscriptions","organizations_url":"https://api.github.com/users/AlanBreck/orgs","repos_url":"https://api.github.com/users/AlanBreck/repos","events_url":"https://api.github.com/users/AlanBreck/events{/privacy}","received_events_url":"https://api.github.com/users/AlanBreck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-28T23:19:39Z","updated_at":"2016-04-28T23:19:39Z","closed_at":null,"body":"Hello,\r\n\r\nProps with a prop type of `objectOf` get parsed as a `custom` prop type rather than a `objectOf` prop type with a `value` property defining what the values of the object should be (like how `arrayOf` is handled).\r\n\r\nInput:\r\n```javascript\r\nComponent.propTypes = {\r\n    optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number),\r\n    optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number),\r\n};\r\n```\r\nOutput:\r\n```javascript\r\n{\r\n\t\"optionalArrayOf\": {\r\n\t\t\"type\": {\r\n\t\t\t\"name\": \"arrayOf\",\r\n\t\t\t\"value\": {\r\n\t\t\t\t\"name\": \"number\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"required\": false,\r\n\t\t\"description\": \"\"\r\n\t},\r\n\t\"optionalObjectOf\": {\r\n\t\t\"type\": {\r\n\t\t\t\"name\": \"custom\",\r\n\t\t\t\"raw\": \"React.PropTypes.objectOf(React.PropTypes.number)\"\r\n\t\t},\r\n\t\t\"required\": false,\r\n\t\t\"description\": \"\"\r\n\t}\r\n}\r\n```"}}