{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8384","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8384/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8384/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8384/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8384","id":151956759,"number":8384,"title":"Cannot specify array types as properties for React stateless components","user":{"login":"pdeva","id":3190176,"avatar_url":"https://avatars.githubusercontent.com/u/3190176?v=3","gravatar_id":"","url":"https://api.github.com/users/pdeva","html_url":"https://github.com/pdeva","followers_url":"https://api.github.com/users/pdeva/followers","following_url":"https://api.github.com/users/pdeva/following{/other_user}","gists_url":"https://api.github.com/users/pdeva/gists{/gist_id}","starred_url":"https://api.github.com/users/pdeva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdeva/subscriptions","organizations_url":"https://api.github.com/users/pdeva/orgs","repos_url":"https://api.github.com/users/pdeva/repos","events_url":"https://api.github.com/users/pdeva/events{/privacy}","received_events_url":"https://api.github.com/users/pdeva/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-29T20:01:43Z","updated_at":"2016-04-29T20:06:43Z","closed_at":"2016-04-29T20:06:42Z","body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[ ] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[ ] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[ ] Questions are best asked and answered at Stack Overflow\r\n    http://stackoverflow.com/questions/tagged/typescript\r\n\r\nFor bug reports, please include the information below.\r\n__________________________________________________________ -->\r\n\r\n**TypeScript Version:** \r\n\r\n1.8.10\r\n\r\n**Code**\r\n\r\n```ts\r\n// A self-contained demonstration of the problem follows...\r\n\r\nconst ViolationsList = ({\r\n\tviolations: IViolation[]\r\n}) => (<div></div>);\r\n\r\n```\r\n\r\n\r\n**Expected behavior:**\r\nThis code should compile fine.\r\n\r\n\r\n**Actual behavior:** \r\nError msg printed on line containing `violations: IViolation[]`\r\n\r\n```\r\nerror TS1005: '=' expected.\r\n```\r\n\r\nIf i change the code to not take an array, it compiles fine:\r\n\r\n```\r\nconst ViolationsList = ({\r\n\tviolations: IViolation\r\n}) => (<div></div>);\r\n```\r\n\r\nThis is a serious bug in typescript."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/215866479","html_url":"https://github.com/Microsoft/TypeScript/issues/8384#issuecomment-215866479","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8384","id":215866479,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T20:06:42Z","updated_at":"2016-04-29T20:06:42Z","body":"Unfortunately colons in binding patterns rename the destructured property with the name on the left side as whatever you have on the right side.\r\n\r\nI think you want something like\r\n\r\n```ts\r\nconst ViolationsList = ({ violations }: { violations: IViolation[] }) => <div></div>\r\n```"}}