{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/5389","repository_url":"https://api.github.com/repos/pouchdb/pouchdb","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/5389/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/5389/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/5389/events","html_url":"https://github.com/pouchdb/pouchdb/issues/5389","id":161759637,"number":5389,"title":"TypeScript users are not happy","user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pouchdb/pouchdb/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/pouchdb/pouchdb/labels/help%20wanted","name":"help wanted","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-06-22T18:57:50Z","updated_at":"2016-06-25T14:57:28Z","closed_at":null,"body":"Normally I wouldn't consider this our issue, but given the popularity of Angular 2 and Ionic 2, I think we should consider this our issue.\r\n\r\nWe keep getting complaints about TypeScript+PouchDB integration, and apparently it comes down to the definition files. It seems there are lots of them out there, but none of them are very up-to-date.\r\n\r\nLooks like we need to send someone out to update the DefinitelyTyped definitions. That someone may or may not be me. 😅\r\n\r\nPrior art:\r\n\r\n* https://github.com/AGBrown/pouchdb.d.ts\r\n* http://definitelytyped.org/docs/pouchDB--pouch/globals.html\r\n\r\nI'm not sure which dts file is the most up-to-date, but we should probably start with that and then submit it as a PR to DefinitelyTyped. Note that I'm not proposing we move the dts file in-house and maintain it ourselves, just that we put the effort in, since the TS community seems to need some help here.\r\n\r\nRelated: https://github.com/AGBrown/pouchdb.d.ts/issues/41\r\n[Discussion on Twitter](https://twitter.com/nolanlawson/status/745682266009931776)"},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/228548247","html_url":"https://github.com/pouchdb/pouchdb/issues/5389#issuecomment-228548247","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/5389","id":228548247,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T14:57:28Z","updated_at":"2016-06-25T14:57:28Z","body":"Looking at your code, it seems the bug is that you didn’t `npm install pouchdb`. I should see it in `package.json`, but I don’t…\r\n\r\nAlso just a protip: you don’t need to check Cordova plugins into version control. You can ignore everything in the `plugins` and `platforms` directories."}}
{"actor":{"display_login":"nolanlawson"}}