{"action":"closed","number":3120,"pull_request":{"url":"https://api.github.com/repos/palantir/tslint/pulls/3120","id":135412315,"html_url":"https://github.com/palantir/tslint/pull/3120","diff_url":"https://github.com/palantir/tslint/pull/3120.diff","patch_url":"https://github.com/palantir/tslint/pull/3120.patch","issue_url":"https://api.github.com/repos/palantir/tslint/issues/3120","number":3120,"state":"closed","locked":false,"title":"Refine no-unnecessary-type-assertion rule to not flag necessary assertions","user":{"login":"calebegg","id":782920,"avatar_url":"https://avatars3.githubusercontent.com/u/782920?v=4","gravatar_id":"","url":"https://api.github.com/users/calebegg","html_url":"https://github.com/calebegg","followers_url":"https://api.github.com/users/calebegg/followers","following_url":"https://api.github.com/users/calebegg/following{/other_user}","gists_url":"https://api.github.com/users/calebegg/gists{/gist_id}","starred_url":"https://api.github.com/users/calebegg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebegg/subscriptions","organizations_url":"https://api.github.com/users/calebegg/orgs","repos_url":"https://api.github.com/users/calebegg/repos","events_url":"https://api.github.com/users/calebegg/events{/privacy}","received_events_url":"https://api.github.com/users/calebegg/received_events","type":"User","site_admin":false},"body":"Type assertions prevent a type from being widened in a couple of\nsituations, such as in an object literal or the inferred return type of\na function.","created_at":"2017-08-11T20:24:18Z","updated_at":"2017-08-17T04:36:19Z","closed_at":"2017-08-17T04:36:19Z","merged_at":"2017-08-17T04:36:19Z","merge_commit_sha":"c51e1bd7643d3efae4d68cfdd660586ccd1630bf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/palantir/tslint/pulls/3120/commits","review_comments_url":"https://api.github.com/repos/palantir/tslint/pulls/3120/comments","review_comment_url":"https://api.github.com/repos/palantir/tslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/3120/comments","statuses_url":"https://api.github.com/repos/palantir/tslint/statuses/f17e6bfb7024c23e6d1bc8677cab4ce26bc633db","head":{"label":"calebegg:fix-necessary-type-assertions","ref":"fix-necessary-type-assertions","sha":"f17e6bfb7024c23e6d1bc8677cab4ce26bc633db","user":{"login":"calebegg","id":782920,"avatar_url":"https://avatars3.githubusercontent.com/u/782920?v=4","gravatar_id":"","url":"https://api.github.com/users/calebegg","html_url":"https://github.com/calebegg","followers_url":"https://api.github.com/users/calebegg/followers","following_url":"https://api.github.com/users/calebegg/following{/other_user}","gists_url":"https://api.github.com/users/calebegg/gists{/gist_id}","starred_url":"https://api.github.com/users/calebegg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebegg/subscriptions","organizations_url":"https://api.github.com/users/calebegg/orgs","repos_url":"https://api.github.com/users/calebegg/repos","events_url":"https://api.github.com/users/calebegg/events{/privacy}","received_events_url":"https://api.github.com/users/calebegg/received_events","type":"User","site_admin":false},"repo":{"id":81009995,"name":"tslint","full_name":"calebegg/tslint","owner":{"login":"calebegg","id":782920,"avatar_url":"https://avatars3.githubusercontent.com/u/782920?v=4","gravatar_id":"","url":"https://api.github.com/users/calebegg","html_url":"https://github.com/calebegg","followers_url":"https://api.github.com/users/calebegg/followers","following_url":"https://api.github.com/users/calebegg/following{/other_user}","gists_url":"https://api.github.com/users/calebegg/gists{/gist_id}","starred_url":"https://api.github.com/users/calebegg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebegg/subscriptions","organizations_url":"https://api.github.com/users/calebegg/orgs","repos_url":"https://api.github.com/users/calebegg/repos","events_url":"https://api.github.com/users/calebegg/events{/privacy}","received_events_url":"https://api.github.com/users/calebegg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/calebegg/tslint","description":":vertical_traffic_light: An extensible linter for the TypeScript language","fork":true,"url":"https://api.github.com/repos/calebegg/tslint","forks_url":"https://api.github.com/repos/calebegg/tslint/forks","keys_url":"https://api.github.com/repos/calebegg/tslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calebegg/tslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calebegg/tslint/teams","hooks_url":"https://api.github.com/repos/calebegg/tslint/hooks","issue_events_url":"https://api.github.com/repos/calebegg/tslint/issues/events{/number}","events_url":"https://api.github.com/repos/calebegg/tslint/events","assignees_url":"https://api.github.com/repos/calebegg/tslint/assignees{/user}","branches_url":"https://api.github.com/repos/calebegg/tslint/branches{/branch}","tags_url":"https://api.github.com/repos/calebegg/tslint/tags","blobs_url":"https://api.github.com/repos/calebegg/tslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calebegg/tslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calebegg/tslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/calebegg/tslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calebegg/tslint/statuses/{sha}","languages_url":"https://api.github.com/repos/calebegg/tslint/languages","stargazers_url":"https://api.github.com/repos/calebegg/tslint/stargazers","contributors_url":"https://api.github.com/repos/calebegg/tslint/contributors","subscribers_url":"https://api.github.com/repos/calebegg/tslint/subscribers","subscription_url":"https://api.github.com/repos/calebegg/tslint/subscription","commits_url":"https://api.github.com/repos/calebegg/tslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/calebegg/tslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/calebegg/tslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/calebegg/tslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/calebegg/tslint/contents/{+path}","compare_url":"https://api.github.com/repos/calebegg/tslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calebegg/tslint/merges","archive_url":"https://api.github.com/repos/calebegg/tslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calebegg/tslint/downloads","issues_url":"https://api.github.com/repos/calebegg/tslint/issues{/number}","pulls_url":"https://api.github.com/repos/calebegg/tslint/pulls{/number}","milestones_url":"https://api.github.com/repos/calebegg/tslint/milestones{/number}","notifications_url":"https://api.github.com/repos/calebegg/tslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calebegg/tslint/labels{/name}","releases_url":"https://api.github.com/repos/calebegg/tslint/releases{/id}","deployments_url":"https://api.github.com/repos/calebegg/tslint/deployments","created_at":"2017-02-05T17:47:23Z","updated_at":"2017-02-05T17:47:27Z","pushed_at":"2017-08-14T21:00:07Z","git_url":"git://github.com/calebegg/tslint.git","ssh_url":"git@github.com:calebegg/tslint.git","clone_url":"https://github.com/calebegg/tslint.git","svn_url":"https://github.com/calebegg/tslint","homepage":"http://palantir.github.io/tslint/","size":12801,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"palantir:master","ref":"master","sha":"6b6f43ad17bfe186fea300eb327a2e0838f36e51","user":{"login":"palantir","id":303157,"avatar_url":"https://avatars0.githubusercontent.com/u/303157?v=4","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"repo":{"id":11672345,"name":"tslint","full_name":"palantir/tslint","owner":{"login":"palantir","id":303157,"avatar_url":"https://avatars0.githubusercontent.com/u/303157?v=4","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/palantir/tslint","description":":vertical_traffic_light: An extensible linter for the TypeScript language","fork":false,"url":"https://api.github.com/repos/palantir/tslint","forks_url":"https://api.github.com/repos/palantir/tslint/forks","keys_url":"https://api.github.com/repos/palantir/tslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palantir/tslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palantir/tslint/teams","hooks_url":"https://api.github.com/repos/palantir/tslint/hooks","issue_events_url":"https://api.github.com/repos/palantir/tslint/issues/events{/number}","events_url":"https://api.github.com/repos/palantir/tslint/events","assignees_url":"https://api.github.com/repos/palantir/tslint/assignees{/user}","branches_url":"https://api.github.com/repos/palantir/tslint/branches{/branch}","tags_url":"https://api.github.com/repos/palantir/tslint/tags","blobs_url":"https://api.github.com/repos/palantir/tslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palantir/tslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palantir/tslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/palantir/tslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palantir/tslint/statuses/{sha}","languages_url":"https://api.github.com/repos/palantir/tslint/languages","stargazers_url":"https://api.github.com/repos/palantir/tslint/stargazers","contributors_url":"https://api.github.com/repos/palantir/tslint/contributors","subscribers_url":"https://api.github.com/repos/palantir/tslint/subscribers","subscription_url":"https://api.github.com/repos/palantir/tslint/subscription","commits_url":"https://api.github.com/repos/palantir/tslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/palantir/tslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/palantir/tslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/palantir/tslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/palantir/tslint/contents/{+path}","compare_url":"https://api.github.com/repos/palantir/tslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palantir/tslint/merges","archive_url":"https://api.github.com/repos/palantir/tslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palantir/tslint/downloads","issues_url":"https://api.github.com/repos/palantir/tslint/issues{/number}","pulls_url":"https://api.github.com/repos/palantir/tslint/pulls{/number}","milestones_url":"https://api.github.com/repos/palantir/tslint/milestones{/number}","notifications_url":"https://api.github.com/repos/palantir/tslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palantir/tslint/labels{/name}","releases_url":"https://api.github.com/repos/palantir/tslint/releases{/id}","deployments_url":"https://api.github.com/repos/palantir/tslint/deployments","created_at":"2013-07-25T22:19:18Z","updated_at":"2017-08-17T02:19:08Z","pushed_at":"2017-08-17T04:36:19Z","git_url":"git://github.com/palantir/tslint.git","ssh_url":"git@github.com:palantir/tslint.git","clone_url":"https://github.com/palantir/tslint.git","svn_url":"https://github.com/palantir/tslint","homepage":"http://palantir.github.io/tslint/","size":12953,"stargazers_count":2211,"watchers_count":2211,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":449,"mirror_url":null,"open_issues_count":411,"forks":449,"open_issues":411,"watchers":2211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/palantir/tslint/pulls/3120"},"html":{"href":"https://github.com/palantir/tslint/pull/3120"},"issue":{"href":"https://api.github.com/repos/palantir/tslint/issues/3120"},"comments":{"href":"https://api.github.com/repos/palantir/tslint/issues/3120/comments"},"review_comments":{"href":"https://api.github.com/repos/palantir/tslint/pulls/3120/comments"},"review_comment":{"href":"https://api.github.com/repos/palantir/tslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/palantir/tslint/pulls/3120/commits"},"statuses":{"href":"https://api.github.com/repos/palantir/tslint/statuses/f17e6bfb7024c23e6d1bc8677cab4ce26bc633db"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ajafff","id":11968040,"avatar_url":"https://avatars0.githubusercontent.com/u/11968040?v=4","gravatar_id":"","url":"https://api.github.com/users/ajafff","html_url":"https://github.com/ajafff","followers_url":"https://api.github.com/users/ajafff/followers","following_url":"https://api.github.com/users/ajafff/following{/other_user}","gists_url":"https://api.github.com/users/ajafff/gists{/gist_id}","starred_url":"https://api.github.com/users/ajafff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajafff/subscriptions","organizations_url":"https://api.github.com/users/ajafff/orgs","repos_url":"https://api.github.com/users/ajafff/repos","events_url":"https://api.github.com/users/ajafff/events{/privacy}","received_events_url":"https://api.github.com/users/ajafff/received_events","type":"User","site_admin":false},"comments":4,"review_comments":5,"maintainer_can_modify":false,"commits":3,"additions":30,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"ajafff"}}