{"action":"closed","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8248","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8248/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8248/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/8248/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/issues/8248","id":136297151,"number":8248,"title":"[mongoose.d.ts] Can't use ES6 promises","user":{"login":"sundriver","id":1539955,"avatar_url":"https://avatars.githubusercontent.com/u/1539955?v=3","gravatar_id":"","url":"https://api.github.com/users/sundriver","html_url":"https://github.com/sundriver","followers_url":"https://api.github.com/users/sundriver/followers","following_url":"https://api.github.com/users/sundriver/following{/other_user}","gists_url":"https://api.github.com/users/sundriver/gists{/gist_id}","starred_url":"https://api.github.com/users/sundriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundriver/subscriptions","organizations_url":"https://api.github.com/users/sundriver/orgs","repos_url":"https://api.github.com/users/sundriver/repos","events_url":"https://api.github.com/users/sundriver/events{/privacy}","received_events_url":"https://api.github.com/users/sundriver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-25T06:39:26Z","updated_at":"2016-07-13T06:23:35Z","closed_at":"2016-07-13T06:23:35Z","body":"Hi Guys,\r\n \r\nI am trying to use ES6 Promises for Mongoose ODM in TypeScrpt.\r\n\r\nI have the following line\r\n\r\n```javascript\r\nmongoose.Promise = Promise; // as instructed by MongooseJs docs to use ES6 futures\r\n```\r\n\r\nWhich give me the following error:\r\n\r\n```bash\r\nerror TS2322: Type 'PromiseConstructor' is not assignable to type 'typeof Promise'.\r\n  Type 'Promise<any>' is not assignable to type 'Promise<any>'.\r\n    Property 'end' is missing in type 'Promise<any>'.\r\n```\r\n\r\nI think this could be a bug from .d.ts file of mongoose\r\n\r\n"}}
{"actor":{"display_login":"mhegazy"}}