{"action":"created","comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments/94061537","pull_request_review_id":14592088,"id":94061537,"diff_hunk":"@@ -12335,7 +12335,7 @@ declare module _ {\n          * @param value The value to check.\n          * @return Returns true if value is null, else false.\n          */\n-        isNull(value?: any): boolean;\n+        isNull(value?: any): value is null;","path":"lodash/index.d.ts","position":null,"original_position":14,"commit_id":"b2209b605ac9011d7b7df1dea326158c5f41415f","original_commit_id":"9154bbb5471208718fe807227bf0e5e5a57b3664","user":{"login":"mehl321","id":1270794,"avatar_url":"https://avatars.githubusercontent.com/u/1270794?v=3","gravatar_id":"","url":"https://api.github.com/users/mehl321","html_url":"https://github.com/mehl321","followers_url":"https://api.github.com/users/mehl321/followers","following_url":"https://api.github.com/users/mehl321/following{/other_user}","gists_url":"https://api.github.com/users/mehl321/gists{/gist_id}","starred_url":"https://api.github.com/users/mehl321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehl321/subscriptions","organizations_url":"https://api.github.com/users/mehl321/orgs","repos_url":"https://api.github.com/users/mehl321/repos","events_url":"https://api.github.com/users/mehl321/events{/privacy}","received_events_url":"https://api.github.com/users/mehl321/received_events","type":"User","site_admin":false},"body":"Ok, it's done.","created_at":"2016-12-28T18:16:33Z","updated_at":"2016-12-28T18:16:33Z","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351#discussion_r94061537","pull_request_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351","_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments/94061537"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351#discussion_r94061537"},"pull_request":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351"}}},"pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351","id":98048878,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351.patch","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/13351","number":13351,"state":"open","locked":false,"title":"[lodash] add type guards to isNull, isUndefined, isNil","user":{"login":"mehl321","id":1270794,"avatar_url":"https://avatars.githubusercontent.com/u/1270794?v=3","gravatar_id":"","url":"https://api.github.com/users/mehl321","html_url":"https://github.com/mehl321","followers_url":"https://api.github.com/users/mehl321/followers","following_url":"https://api.github.com/users/mehl321/following{/other_user}","gists_url":"https://api.github.com/users/mehl321/gists{/gist_id}","starred_url":"https://api.github.com/users/mehl321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehl321/subscriptions","organizations_url":"https://api.github.com/users/mehl321/orgs","repos_url":"https://api.github.com/users/mehl321/repos","events_url":"https://api.github.com/users/mehl321/events{/privacy}","received_events_url":"https://api.github.com/users/mehl321/received_events","type":"User","site_admin":false},"body":"Please fill in this template.\r\n\r\n- [ ] Prefer to make your PR against the `master` branch.\r\n- [x] Use a meaningful title for the pull request. Include the name of the package modified.\r\n- [x] Test the change in your own code.\r\n- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped#make-a-pull-request).\r\n- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped#common-mistakes).\r\n- [x] Run `npm run lint -- package-name` if a `tslint.json` is present.\r\n\r\nIf adding a new definition:\r\n- [ ] The package does not provide its own types, and you can not add them.\r\n- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.\r\n- [ ] Run `tsc` without errors.\r\n- [ ] Include the required [files](https://github.com/DefinitelyTyped/DefinitelyTyped#create-a-new-package) and header. Base these on the README, *not* on an existing project.\r\n\r\nIf changing an existing definition:\r\n- [x] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>\r\n- [ ] Increase the version number in the header if appropriate.\r\n\r\n-----\r\n\r\nThis very simple PR adds type guards to `isNull()` and `isUndefined` ([more information here](https://www.typescriptlang.org/docs/handbook/advanced-types.html), chapter \"User-Defined Type Guards\").\r\n\r\nExample:\r\n\r\n```typescript\r\n    this.startBlock: number;\r\n\r\n    /* ... */\r\n\r\n    let startBlock: number | null;\r\n    if (!_.isNull(startBlock) && !_.isUndefined(startBlock)) {\r\n      // even with \"strictNullChecks\" option enabled Typescript will not generate an error,\r\n      // knowing that \"startBlock\" can only be a number.\r\n      this.startBlock = startBlock;\r\n    } else {\r\n      this.startBlock = 0;\r\n    }\r\n```\r\n\r\nPlease tell me if I forgot to do something, it's my first PR.","created_at":"2016-12-14T22:25:00Z","updated_at":"2016-12-28T18:16:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b9bb0b2851242f9000e32591b8e0641d2bb6566","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351/commits","review_comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351/comments","review_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/13351/comments","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/b2209b605ac9011d7b7df1dea326158c5f41415f","head":{"label":"mehl321:types-2.0","ref":"types-2.0","sha":"b2209b605ac9011d7b7df1dea326158c5f41415f","user":{"login":"mehl321","id":1270794,"avatar_url":"https://avatars.githubusercontent.com/u/1270794?v=3","gravatar_id":"","url":"https://api.github.com/users/mehl321","html_url":"https://github.com/mehl321","followers_url":"https://api.github.com/users/mehl321/followers","following_url":"https://api.github.com/users/mehl321/following{/other_user}","gists_url":"https://api.github.com/users/mehl321/gists{/gist_id}","starred_url":"https://api.github.com/users/mehl321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehl321/subscriptions","organizations_url":"https://api.github.com/users/mehl321/orgs","repos_url":"https://api.github.com/users/mehl321/repos","events_url":"https://api.github.com/users/mehl321/events{/privacy}","received_events_url":"https://api.github.com/users/mehl321/received_events","type":"User","site_admin":false},"repo":{"id":76492641,"name":"DefinitelyTyped","full_name":"mehl321/DefinitelyTyped","owner":{"login":"mehl321","id":1270794,"avatar_url":"https://avatars.githubusercontent.com/u/1270794?v=3","gravatar_id":"","url":"https://api.github.com/users/mehl321","html_url":"https://github.com/mehl321","followers_url":"https://api.github.com/users/mehl321/followers","following_url":"https://api.github.com/users/mehl321/following{/other_user}","gists_url":"https://api.github.com/users/mehl321/gists{/gist_id}","starred_url":"https://api.github.com/users/mehl321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehl321/subscriptions","organizations_url":"https://api.github.com/users/mehl321/orgs","repos_url":"https://api.github.com/users/mehl321/repos","events_url":"https://api.github.com/users/mehl321/events{/privacy}","received_events_url":"https://api.github.com/users/mehl321/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mehl321/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":true,"url":"https://api.github.com/repos/mehl321/DefinitelyTyped","forks_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/mehl321/DefinitelyTyped/deployments","created_at":"2016-12-14T20:02:49Z","updated_at":"2016-12-14T20:03:01Z","pushed_at":"2016-12-28T17:52:46Z","git_url":"git://github.com/mehl321/DefinitelyTyped.git","ssh_url":"git@github.com:mehl321/DefinitelyTyped.git","clone_url":"https://github.com/mehl321/DefinitelyTyped.git","svn_url":"https://github.com/mehl321/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":162514,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DefinitelyTyped:types-2.0","ref":"types-2.0","sha":"0b42d8fab34ffadd4c477805bf0bb093b8b36345","user":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"repo":{"id":6093316,"name":"DefinitelyTyped","full_name":"DefinitelyTyped/DefinitelyTyped","owner":{"login":"DefinitelyTyped","id":3637556,"avatar_url":"https://avatars.githubusercontent.com/u/3637556?v=3","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":false,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","forks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/deployments","created_at":"2012-10-05T16:39:45Z","updated_at":"2016-12-28T17:32:39Z","pushed_at":"2016-12-28T18:09:15Z","git_url":"git://github.com/DefinitelyTyped/DefinitelyTyped.git","ssh_url":"git@github.com:DefinitelyTyped/DefinitelyTyped.git","clone_url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","svn_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":168437,"stargazers_count":9302,"watchers_count":9302,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7432,"mirror_url":null,"open_issues_count":1141,"forks":7432,"open_issues":1141,"watchers":9302,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13351"},"issue":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/13351"},"comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/13351/comments"},"review_comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351/comments"},"review_comment":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/13351/commits"},"statuses":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/b2209b605ac9011d7b7df1dea326158c5f41415f"}}}}
{"actor":{"display_login":"mehl321"}}