{"action":"opened","issue":{"url":"https://api.github.com/repos/basarat/typescript-book/issues/79","repository_url":"https://api.github.com/repos/basarat/typescript-book","labels_url":"https://api.github.com/repos/basarat/typescript-book/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/basarat/typescript-book/issues/79/comments","events_url":"https://api.github.com/repos/basarat/typescript-book/issues/79/events","html_url":"https://github.com/basarat/typescript-book/issues/79","id":136980321,"number":79,"title":"Spread parameters","user":{"login":"vjau","id":5278429,"avatar_url":"https://avatars.githubusercontent.com/u/5278429?v=3","gravatar_id":"","url":"https://api.github.com/users/vjau","html_url":"https://github.com/vjau","followers_url":"https://api.github.com/users/vjau/followers","following_url":"https://api.github.com/users/vjau/following{/other_user}","gists_url":"https://api.github.com/users/vjau/gists{/gist_id}","starred_url":"https://api.github.com/users/vjau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjau/subscriptions","organizations_url":"https://api.github.com/users/vjau/orgs","repos_url":"https://api.github.com/users/vjau/repos","events_url":"https://api.github.com/users/vjau/events{/privacy}","received_events_url":"https://api.github.com/users/vjau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-27T23:15:01Z","updated_at":"2016-02-27T23:15:01Z","closed_at":null,"body":"In the book, this code is demonstrated :\r\n```ts\r\nfunction foo(x, y, z) { }\r\nvar args = [0, 1, 2];\r\nfoo(...args);\r\n```\r\n\r\nThis is perfectly valid ES6 code, however AFAIK the compiler reports an error per https://github.com/Microsoft/TypeScript/issues/5296"}}