{"action":"created","issue":{"url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/9","repository_url":"https://api.github.com/repos/goenning/typed-generic-pool","labels_url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/9/comments","events_url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/9/events","html_url":"https://github.com/goenning/typed-generic-pool/issues/9","id":184797781,"number":9,"title":"Type of Factory<T>.create is incorrect","user":{"login":"TomMarius","id":6461336,"avatar_url":"https://avatars.githubusercontent.com/u/6461336?v=3","gravatar_id":"","url":"https://api.github.com/users/TomMarius","html_url":"https://github.com/TomMarius","followers_url":"https://api.github.com/users/TomMarius/followers","following_url":"https://api.github.com/users/TomMarius/following{/other_user}","gists_url":"https://api.github.com/users/TomMarius/gists{/gist_id}","starred_url":"https://api.github.com/users/TomMarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomMarius/subscriptions","organizations_url":"https://api.github.com/users/TomMarius/orgs","repos_url":"https://api.github.com/users/TomMarius/repos","events_url":"https://api.github.com/users/TomMarius/events{/privacy}","received_events_url":"https://api.github.com/users/TomMarius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T10:00:21Z","updated_at":"2016-11-11T19:41:06Z","closed_at":null,"body":"**Now:**\n`create: (callback: (err: Error | void, client?: T) => void) => void`\n\n**Why is it an error:**\nCorrect usage: `create: (callback) => { MongoClient.connect(\"\").then(connection => callback(null, connection)) },` now emits a type error: `Argument of type 'null' is not assignable to parameter of type 'void | Error'.`\n\n**Correct type/fix:**\n`create: (callback: (err: Error | null, client?: T) => void) => void`\n"},"comment":{"url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/comments/260038713","html_url":"https://github.com/goenning/typed-generic-pool/issues/9#issuecomment-260038713","issue_url":"https://api.github.com/repos/goenning/typed-generic-pool/issues/9","id":260038713,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T19:41:06Z","updated_at":"2016-11-11T19:41:06Z","body":"You can use `undefined` as a workaround. This repo was typed for TS 1.x which meant having to resort to `void` before the `null` and `undefined` types were introduced."}}
{"actor":{"display_login":"blakeembrey"}}