{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15929","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15929/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15929/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15929/events","html_url":"https://github.com/Microsoft/TypeScript/issues/15929","id":229667501,"number":15929,"title":"[JSDoc] Cannot assign array of string to array of literal type.","user":{"login":"pc-lover","id":19520603,"avatar_url":"https://avatars1.githubusercontent.com/u/19520603?v=3","gravatar_id":"","url":"https://api.github.com/users/pc-lover","html_url":"https://github.com/pc-lover","followers_url":"https://api.github.com/users/pc-lover/followers","following_url":"https://api.github.com/users/pc-lover/following{/other_user}","gists_url":"https://api.github.com/users/pc-lover/gists{/gist_id}","starred_url":"https://api.github.com/users/pc-lover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pc-lover/subscriptions","organizations_url":"https://api.github.com/users/pc-lover/orgs","repos_url":"https://api.github.com/users/pc-lover/repos","events_url":"https://api.github.com/users/pc-lover/events{/privacy}","received_events_url":"https://api.github.com/users/pc-lover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-18T13:16:08Z","updated_at":"2017-05-18T18:45:21Z","closed_at":null,"body":"**TypeScript Version:**  2.3.2\r\n\r\n**Code**\r\nUsing TypeScript to check JavaScript code (`allowJs` and `checkJs` enabled)\r\n```js\r\n/** @type {(\"foo\" | \"bar\")[]>} */\r\nconst test = [\"foo\", \"bar\"];\r\n```\r\n\r\n**Expected behavior:**\r\nNo errors occur.\r\n\r\n**Actual behavior:**\r\n```\r\nType 'string[]' is not assignable to type '(\"foo\" | \"bar\")[]'.\r\nType 'string' is not assignable to type '\"foo\" | \"bar\"'.\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/302506833","html_url":"https://github.com/Microsoft/TypeScript/issues/15929#issuecomment-302506833","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/15929","id":302506833,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars0.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-05-18T18:45:21Z","updated_at":"2017-05-18T18:45:21Z","body":"Should be tracked by https://github.com/Microsoft/TypeScript/issues/15618#issuecomment-300632637"}}
{"actor":{"display_login":"mhegazy"}}