{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/callsites/pulls/comments/234532628","pull_request_review_id":176190091,"id":234532628,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDUzMjYyOA==","diff_hunk":"@@ -0,0 +1,20 @@\n+import {expectType} from 'tsd-check';\n+import {default as callsites, CallSite} from '.';\n+\n+const callsite = callsites()[0];\n+\n+expectType<CallSite[]>(callsites());\n+\n+expectType<unknown | undefined>(callsite.getThis());\n+expectType<string | null>(callsite.getTypeName());\n+expectType<Function | null>(callsite.getFunction());\n+expectType<string | null>(callsite.getFunctionName());\n+expectType<string | undefined>(callsite.getMethodName());\n+expectType<string | null>(callsite.getFileName());\n+expectType<number | null>(callsite.getLineNumber());\n+expectType<number | null>(callsite.getColumnNumber());\n+expectType<string | undefined>(callsite.getEvalOrigin());\n+expectType<boolean>(callsite.isToplevel());\n+expectType<boolean>(callsite.isEval());\n+expectType<boolean>(callsite.isNative());\n+expectType<boolean>(callsite.isConstructor());","path":"index.test-d.ts","position":20,"original_position":20,"commit_id":"a3f29c550bec85a058249e40107aeb66d5ceda3e","original_commit_id":"a3f29c550bec85a058249e40107aeb66d5ceda3e","user":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"Do you really see the value of testing all of the methods? They can't really be anything other than what we define them to be, so this test is not really testing anything.","created_at":"2018-11-19T08:50:11Z","updated_at":"2018-11-19T08:50:11Z","html_url":"https://github.com/sindresorhus/callsites/pull/9#discussion_r234532628","pull_request_url":"https://api.github.com/repos/sindresorhus/callsites/pulls/9","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/comments/234532628"},"html":{"href":"https://github.com/sindresorhus/callsites/pull/9#discussion_r234532628"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/callsites/pulls/9","id":231871886,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODcxODg2","html_url":"https://github.com/sindresorhus/callsites/pull/9","diff_url":"https://github.com/sindresorhus/callsites/pull/9.diff","patch_url":"https://github.com/sindresorhus/callsites/pull/9.patch","issue_url":"https://api.github.com/repos/sindresorhus/callsites/issues/9","number":9,"state":"open","locked":false,"title":"Add TypeScript definitions","user":{"login":"SamVerschueren","id":1913805,"node_id":"MDQ6VXNlcjE5MTM4MDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1913805?v=4","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-19T07:02:05Z","updated_at":"2018-11-19T08:50:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ba6d5a9a202cdad524c182067928bc090a3852e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/callsites/pulls/9/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/callsites/pulls/9/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/callsites/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/callsites/issues/9/comments","statuses_url":"https://api.github.com/repos/sindresorhus/callsites/statuses/a3f29c550bec85a058249e40107aeb66d5ceda3e","head":{"label":"sindresorhus:typedefs","ref":"typedefs","sha":"a3f29c550bec85a058249e40107aeb66d5ceda3e","user":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":18938743,"node_id":"MDEwOlJlcG9zaXRvcnkxODkzODc0Mw==","name":"callsites","full_name":"sindresorhus/callsites","private":false,"owner":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sindresorhus/callsites","description":"Get callsites from the V8 stack trace API","fork":false,"url":"https://api.github.com/repos/sindresorhus/callsites","forks_url":"https://api.github.com/repos/sindresorhus/callsites/forks","keys_url":"https://api.github.com/repos/sindresorhus/callsites/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/callsites/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/callsites/teams","hooks_url":"https://api.github.com/repos/sindresorhus/callsites/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/callsites/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/callsites/events","assignees_url":"https://api.github.com/repos/sindresorhus/callsites/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/callsites/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/callsites/tags","blobs_url":"https://api.github.com/repos/sindresorhus/callsites/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/callsites/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/callsites/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/callsites/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/callsites/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/callsites/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/callsites/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/callsites/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/callsites/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/callsites/subscription","commits_url":"https://api.github.com/repos/sindresorhus/callsites/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/callsites/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/callsites/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/callsites/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/callsites/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/callsites/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/callsites/merges","archive_url":"https://api.github.com/repos/sindresorhus/callsites/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/callsites/downloads","issues_url":"https://api.github.com/repos/sindresorhus/callsites/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/callsites/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/callsites/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/callsites/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/callsites/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/callsites/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/callsites/deployments","created_at":"2014-04-19T10:10:11Z","updated_at":"2018-11-19T07:50:27Z","pushed_at":"2018-11-19T07:50:28Z","git_url":"git://github.com/sindresorhus/callsites.git","ssh_url":"git@github.com:sindresorhus/callsites.git","clone_url":"https://github.com/sindresorhus/callsites.git","svn_url":"https://github.com/sindresorhus/callsites","homepage":null,"size":12,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":95,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"a6b3533ff162e239208a279008c9a68f3f42b169","user":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":18938743,"node_id":"MDEwOlJlcG9zaXRvcnkxODkzODc0Mw==","name":"callsites","full_name":"sindresorhus/callsites","private":false,"owner":{"login":"sindresorhus","id":170270,"node_id":"MDQ6VXNlcjE3MDI3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/170270?v=4","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sindresorhus/callsites","description":"Get callsites from the V8 stack trace API","fork":false,"url":"https://api.github.com/repos/sindresorhus/callsites","forks_url":"https://api.github.com/repos/sindresorhus/callsites/forks","keys_url":"https://api.github.com/repos/sindresorhus/callsites/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/callsites/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/callsites/teams","hooks_url":"https://api.github.com/repos/sindresorhus/callsites/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/callsites/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/callsites/events","assignees_url":"https://api.github.com/repos/sindresorhus/callsites/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/callsites/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/callsites/tags","blobs_url":"https://api.github.com/repos/sindresorhus/callsites/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/callsites/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/callsites/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/callsites/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/callsites/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/callsites/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/callsites/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/callsites/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/callsites/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/callsites/subscription","commits_url":"https://api.github.com/repos/sindresorhus/callsites/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/callsites/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/callsites/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/callsites/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/callsites/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/callsites/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/callsites/merges","archive_url":"https://api.github.com/repos/sindresorhus/callsites/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/callsites/downloads","issues_url":"https://api.github.com/repos/sindresorhus/callsites/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/callsites/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/callsites/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/callsites/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/callsites/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/callsites/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/callsites/deployments","created_at":"2014-04-19T10:10:11Z","updated_at":"2018-11-19T07:50:27Z","pushed_at":"2018-11-19T07:50:28Z","git_url":"git://github.com/sindresorhus/callsites.git","ssh_url":"git@github.com:sindresorhus/callsites.git","clone_url":"https://github.com/sindresorhus/callsites.git","svn_url":"https://github.com/sindresorhus/callsites","homepage":null,"size":12,"stargazers_count":95,"watchers_count":95,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/9"},"html":{"href":"https://github.com/sindresorhus/callsites/pull/9"},"issue":{"href":"https://api.github.com/repos/sindresorhus/callsites/issues/9"},"comments":{"href":"https://api.github.com/repos/sindresorhus/callsites/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/callsites/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/callsites/statuses/a3f29c550bec85a058249e40107aeb66d5ceda3e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sindresorhus"}}