{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/304","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/304/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/304/events","html_url":"https://github.com/petkaantonov/bluebird/issues/304","id":41149631,"number":304,"title":"Typescript support","user":{"login":"rogierschouten","id":7348032,"avatar_url":"https://avatars.githubusercontent.com/u/7348032?v=3","gravatar_id":"","url":"https://api.github.com/users/rogierschouten","html_url":"https://github.com/rogierschouten","followers_url":"https://api.github.com/users/rogierschouten/followers","following_url":"https://api.github.com/users/rogierschouten/following{/other_user}","gists_url":"https://api.github.com/users/rogierschouten/gists{/gist_id}","starred_url":"https://api.github.com/users/rogierschouten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogierschouten/subscriptions","organizations_url":"https://api.github.com/users/rogierschouten/orgs","repos_url":"https://api.github.com/users/rogierschouten/repos","events_url":"https://api.github.com/users/rogierschouten/events{/privacy}","received_events_url":"https://api.github.com/users/rogierschouten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-08-26T08:47:51Z","updated_at":"2015-08-11T08:29:36Z","closed_at":"2014-08-26T13:10:44Z","body":"There are typings files for bluebird on DefinitelyTyped (which I'm about to add to since they're still for version 1.0.0). However, the promisify/promisifyAll() function does not work out of the box with TypeScript as it changes the typing of a library at run-time. Is there any experience / guidelines on working with promises and TypeScript?  I'm currently back to extensive use of the Promise constructor, which appears not to be the recommended way to go.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/129767848","html_url":"https://github.com/petkaantonov/bluebird/issues/304#issuecomment-129767848","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/304","id":129767848,"user":{"login":"grofit","id":927201,"avatar_url":"https://avatars.githubusercontent.com/u/927201?v=3","gravatar_id":"","url":"https://api.github.com/users/grofit","html_url":"https://github.com/grofit","followers_url":"https://api.github.com/users/grofit/followers","following_url":"https://api.github.com/users/grofit/following{/other_user}","gists_url":"https://api.github.com/users/grofit/gists{/gist_id}","starred_url":"https://api.github.com/users/grofit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grofit/subscriptions","organizations_url":"https://api.github.com/users/grofit/orgs","repos_url":"https://api.github.com/users/grofit/repos","events_url":"https://api.github.com/users/grofit/events{/privacy}","received_events_url":"https://api.github.com/users/grofit/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T08:29:36Z","updated_at":"2015-08-11T08:29:36Z","body":"with latest tsc I get:\r\n\r\n`(13,24): error TS2314: Generic type 'Promise<R>' requires 1 type argument(s).`"}}