{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8492","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8492/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8492/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8492/events","html_url":"https://github.com/Microsoft/TypeScript/issues/8492","id":153372808,"number":8492,"title":"Promise.all is not resolve type promise in intellisense","user":{"login":"Thaina","id":1042507,"avatar_url":"https://avatars.githubusercontent.com/u/1042507?v=3","gravatar_id":"","url":"https://api.github.com/users/Thaina","html_url":"https://github.com/Thaina","followers_url":"https://api.github.com/users/Thaina/followers","following_url":"https://api.github.com/users/Thaina/following{/other_user}","gists_url":"https://api.github.com/users/Thaina/gists{/gist_id}","starred_url":"https://api.github.com/users/Thaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thaina/subscriptions","organizations_url":"https://api.github.com/users/Thaina/orgs","repos_url":"https://api.github.com/users/Thaina/repos","events_url":"https://api.github.com/users/Thaina/events{/privacy}","received_events_url":"https://api.github.com/users/Thaina/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Design%20Limitation","name":"Design Limitation","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"sandersn","id":293473,"avatar_url":"https://avatars.githubusercontent.com/u/293473?v=3","gravatar_id":"","url":"https://api.github.com/users/sandersn","html_url":"https://github.com/sandersn","followers_url":"https://api.github.com/users/sandersn/followers","following_url":"https://api.github.com/users/sandersn/following{/other_user}","gists_url":"https://api.github.com/users/sandersn/gists{/gist_id}","starred_url":"https://api.github.com/users/sandersn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandersn/subscriptions","organizations_url":"https://api.github.com/users/sandersn/orgs","repos_url":"https://api.github.com/users/sandersn/repos","events_url":"https://api.github.com/users/sandersn/events{/privacy}","received_events_url":"https://api.github.com/users/sandersn/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-06T03:47:34Z","updated_at":"2016-05-14T05:04:52Z","closed_at":null,"body":"`Promise.all` should be able to take array of `Promise<T>` and resolve array of T\r\n\r\nBut it not work as expect\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1042507/15063859/097469be-1378-11e6-9e26-772432d2bee4.png)\r\n\r\nAs you can see `pairs` should be `number[]`\r\nWhich cause from a problem in this file\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1042507/15063829/b179f440-1377-11e6-8d22-a1eb8964877f.png)\r\n\r\nSo I fix it like this\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1042507/15063835/c406bad0-1377-11e6-946e-d58442549187.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1042507/15063843/e3d5d562-1377-11e6-9f58-44eb6e26d95e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/219201073","html_url":"https://github.com/Microsoft/TypeScript/issues/8492#issuecomment-219201073","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/8492","id":219201073,"user":{"login":"Thaina","id":1042507,"avatar_url":"https://avatars.githubusercontent.com/u/1042507?v=3","gravatar_id":"","url":"https://api.github.com/users/Thaina","html_url":"https://github.com/Thaina","followers_url":"https://api.github.com/users/Thaina/followers","following_url":"https://api.github.com/users/Thaina/following{/other_user}","gists_url":"https://api.github.com/users/Thaina/gists{/gist_id}","starred_url":"https://api.github.com/users/Thaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thaina/subscriptions","organizations_url":"https://api.github.com/users/Thaina/orgs","repos_url":"https://api.github.com/users/Thaina/repos","events_url":"https://api.github.com/users/Thaina/events{/privacy}","received_events_url":"https://api.github.com/users/Thaina/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T05:04:51Z","updated_at":"2016-05-14T05:04:51Z","body":"@sandersn That's not my point\r\n\r\nI mean even that `Promise.all` not return `Promise<number[]>` it should return `Promise<any[]>` And when I call `then(pairs)` pairs should be `number[]` or at least `any[]`\r\n\r\nBut it cam out it is `Promise<{}>`\r\n\r\nWhat I suspect is, `PromiseLike<T>` is not `Promise<T>`"}}