{"action":"opened","issue":{"url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1318","repository_url":"https://api.github.com/repos/jsdoc3/jsdoc","labels_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1318/labels{/name}","comments_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1318/comments","events_url":"https://api.github.com/repos/jsdoc3/jsdoc/issues/1318/events","html_url":"https://github.com/jsdoc3/jsdoc/issues/1318","id":202244685,"number":1318,"title":"Bad-Type-Annotation warning when specifying multiple types in function param","user":{"login":"philipwalton","id":326742,"avatar_url":"https://avatars.githubusercontent.com/u/326742?v=3","gravatar_id":"","url":"https://api.github.com/users/philipwalton","html_url":"https://github.com/philipwalton","followers_url":"https://api.github.com/users/philipwalton/followers","following_url":"https://api.github.com/users/philipwalton/following{/other_user}","gists_url":"https://api.github.com/users/philipwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/philipwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipwalton/subscriptions","organizations_url":"https://api.github.com/users/philipwalton/orgs","repos_url":"https://api.github.com/users/philipwalton/repos","events_url":"https://api.github.com/users/philipwalton/events{/privacy}","received_events_url":"https://api.github.com/users/philipwalton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-20T21:18:29Z","updated_at":"2017-01-20T21:18:29Z","closed_at":null,"body":"When using the following jsdoc comments, I get the following warning:\r\n\r\n```js\r\n/**\r\n * @param {function(Object|string, string|undefined)} originalMethod\r\n * @return {function(Object|string, string|undefined)}\r\n */\r\n```\r\n\r\n```json\r\n{\r\n  \"description\": \"Bad type annotation. missing closing ) See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.\",\r\n  \"type\": \"JSC_TYPE_PARSE_ERROR\",\r\n},\r\n```\r\n\r\nBut it works fine if I use this jsdoc notation:\r\n\r\n```js\r\n/**\r\n * @param {function(...*)} originalMethod\r\n * @return {function(...*)}\r\n */\r\n```\r\n\r\nAre variable types not supported in function type declarations?"}}
{"actor":{"display_login":"philipwalton"}}