{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/7584","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/7584/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/7584/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/7584/events","html_url":"https://github.com/Microsoft/vscode/issues/7584","id":159829984,"number":7584,"title":"Error: [js] property type declarations can only be used in a 'ts' file.","user":{"login":"jaqmol","id":720314,"avatar_url":"https://avatars.githubusercontent.com/u/720314?v=3","gravatar_id":"","url":"https://api.github.com/users/jaqmol","html_url":"https://github.com/jaqmol","followers_url":"https://api.github.com/users/jaqmol/followers","following_url":"https://api.github.com/users/jaqmol/following{/other_user}","gists_url":"https://api.github.com/users/jaqmol/gists{/gist_id}","starred_url":"https://api.github.com/users/jaqmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaqmol/subscriptions","organizations_url":"https://api.github.com/users/jaqmol/orgs","repos_url":"https://api.github.com/users/jaqmol/repos","events_url":"https://api.github.com/users/jaqmol/events{/privacy}","received_events_url":"https://api.github.com/users/jaqmol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-12T14:25:55Z","updated_at":"2016-06-13T06:54:10Z","closed_at":"2016-06-13T06:54:10Z","body":"- VSCode Version: 1.2.0\r\n- OS Version: OSX 10.11.5\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a React component as a class, like:\r\n`\r\nclass CommentList extends React.Component {\r\n  render() {\r\n    ...\r\n  }\r\n}\r\n`\r\n2. Add a static propType property, like:\r\n`\r\nclass CommentList extends React.Component {\r\n  static propTypes = {\r\n    data: PropTypes.array.isRequired\r\n  };\r\n  render() {\r\n    ...\r\n  }\r\n}\r\n`\r\n3. VSC underlines the static propTypes declaration as being an error with `[js] property type declarations can only be used in a 'ts' file.`. Despite there being no problem at all compiling the code with Babel."}}
{"actor":{"display_login":"dbaeumer"}}