{"action":"opened","number":3713,"pull_request":{"url":"https://api.github.com/repos/vuejs/vue/pulls/3713","id":86193897,"html_url":"https://github.com/vuejs/vue/pull/3713","diff_url":"https://github.com/vuejs/vue/pull/3713.diff","patch_url":"https://github.com/vuejs/vue/pull/3713.patch","issue_url":"https://api.github.com/repos/vuejs/vue/issues/3713","number":3713,"state":"open","locked":false,"title":"Add type augmentation test ","user":{"login":"ktsn","id":2194624,"avatar_url":"https://avatars.githubusercontent.com/u/2194624?v=3","gravatar_id":"","url":"https://api.github.com/users/ktsn","html_url":"https://github.com/ktsn","followers_url":"https://api.github.com/users/ktsn/followers","following_url":"https://api.github.com/users/ktsn/following{/other_user}","gists_url":"https://api.github.com/users/ktsn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktsn/subscriptions","organizations_url":"https://api.github.com/users/ktsn/orgs","repos_url":"https://api.github.com/users/ktsn/repos","events_url":"https://api.github.com/users/ktsn/events{/privacy}","received_events_url":"https://api.github.com/users/ktsn/received_events","type":"User","site_admin":false},"body":"Plugins of Vue.js usually add some static or instance properties/methods to `Vue` and some new options to component options.\r\nI think it is good to provide how to augment their typings for the plugin developers.\r\n\r\nI add the test code of such augmentation by this PR and it would be the example for it.","created_at":"2016-09-21T16:09:24Z","updated_at":"2016-09-21T16:09:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vuejs/vue/pulls/3713/commits","review_comments_url":"https://api.github.com/repos/vuejs/vue/pulls/3713/comments","review_comment_url":"https://api.github.com/repos/vuejs/vue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/3713/comments","statuses_url":"https://api.github.com/repos/vuejs/vue/statuses/b65e602f119ca30e071f118de26d056b0cf758e7","head":{"label":"ktsn:type-augmentation-test","ref":"type-augmentation-test","sha":"b65e602f119ca30e071f118de26d056b0cf758e7","user":{"login":"ktsn","id":2194624,"avatar_url":"https://avatars.githubusercontent.com/u/2194624?v=3","gravatar_id":"","url":"https://api.github.com/users/ktsn","html_url":"https://github.com/ktsn","followers_url":"https://api.github.com/users/ktsn/followers","following_url":"https://api.github.com/users/ktsn/following{/other_user}","gists_url":"https://api.github.com/users/ktsn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktsn/subscriptions","organizations_url":"https://api.github.com/users/ktsn/orgs","repos_url":"https://api.github.com/users/ktsn/repos","events_url":"https://api.github.com/users/ktsn/events{/privacy}","received_events_url":"https://api.github.com/users/ktsn/received_events","type":"User","site_admin":false},"repo":{"id":59748892,"name":"vue","full_name":"ktsn/vue","owner":{"login":"ktsn","id":2194624,"avatar_url":"https://avatars.githubusercontent.com/u/2194624?v=3","gravatar_id":"","url":"https://api.github.com/users/ktsn","html_url":"https://github.com/ktsn","followers_url":"https://api.github.com/users/ktsn/followers","following_url":"https://api.github.com/users/ktsn/following{/other_user}","gists_url":"https://api.github.com/users/ktsn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktsn/subscriptions","organizations_url":"https://api.github.com/users/ktsn/orgs","repos_url":"https://api.github.com/users/ktsn/repos","events_url":"https://api.github.com/users/ktsn/events{/privacy}","received_events_url":"https://api.github.com/users/ktsn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ktsn/vue","description":"Simple yet powerful library for building modern web interfaces.","fork":true,"url":"https://api.github.com/repos/ktsn/vue","forks_url":"https://api.github.com/repos/ktsn/vue/forks","keys_url":"https://api.github.com/repos/ktsn/vue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktsn/vue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktsn/vue/teams","hooks_url":"https://api.github.com/repos/ktsn/vue/hooks","issue_events_url":"https://api.github.com/repos/ktsn/vue/issues/events{/number}","events_url":"https://api.github.com/repos/ktsn/vue/events","assignees_url":"https://api.github.com/repos/ktsn/vue/assignees{/user}","branches_url":"https://api.github.com/repos/ktsn/vue/branches{/branch}","tags_url":"https://api.github.com/repos/ktsn/vue/tags","blobs_url":"https://api.github.com/repos/ktsn/vue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktsn/vue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktsn/vue/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktsn/vue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktsn/vue/statuses/{sha}","languages_url":"https://api.github.com/repos/ktsn/vue/languages","stargazers_url":"https://api.github.com/repos/ktsn/vue/stargazers","contributors_url":"https://api.github.com/repos/ktsn/vue/contributors","subscribers_url":"https://api.github.com/repos/ktsn/vue/subscribers","subscription_url":"https://api.github.com/repos/ktsn/vue/subscription","commits_url":"https://api.github.com/repos/ktsn/vue/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktsn/vue/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktsn/vue/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktsn/vue/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktsn/vue/contents/{+path}","compare_url":"https://api.github.com/repos/ktsn/vue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktsn/vue/merges","archive_url":"https://api.github.com/repos/ktsn/vue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktsn/vue/downloads","issues_url":"https://api.github.com/repos/ktsn/vue/issues{/number}","pulls_url":"https://api.github.com/repos/ktsn/vue/pulls{/number}","milestones_url":"https://api.github.com/repos/ktsn/vue/milestones{/number}","notifications_url":"https://api.github.com/repos/ktsn/vue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktsn/vue/labels{/name}","releases_url":"https://api.github.com/repos/ktsn/vue/releases{/id}","deployments_url":"https://api.github.com/repos/ktsn/vue/deployments","created_at":"2016-05-26T12:35:46Z","updated_at":"2016-05-26T12:35:49Z","pushed_at":"2016-09-21T15:53:51Z","git_url":"git://github.com/ktsn/vue.git","ssh_url":"git@github.com:ktsn/vue.git","clone_url":"https://github.com/ktsn/vue.git","svn_url":"https://github.com/ktsn/vue","homepage":"http://vuejs.org","size":11366,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"dev"}},"base":{"label":"vuejs:next","ref":"next","sha":"4785afd15475d548ec529249b5c50770e74bf33c","user":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"repo":{"id":11730342,"name":"vue","full_name":"vuejs/vue","owner":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vuejs/vue","description":"Simple yet powerful library for building modern web interfaces.","fork":false,"url":"https://api.github.com/repos/vuejs/vue","forks_url":"https://api.github.com/repos/vuejs/vue/forks","keys_url":"https://api.github.com/repos/vuejs/vue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs/vue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs/vue/teams","hooks_url":"https://api.github.com/repos/vuejs/vue/hooks","issue_events_url":"https://api.github.com/repos/vuejs/vue/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs/vue/events","assignees_url":"https://api.github.com/repos/vuejs/vue/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs/vue/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs/vue/tags","blobs_url":"https://api.github.com/repos/vuejs/vue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs/vue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs/vue/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs/vue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs/vue/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs/vue/languages","stargazers_url":"https://api.github.com/repos/vuejs/vue/stargazers","contributors_url":"https://api.github.com/repos/vuejs/vue/contributors","subscribers_url":"https://api.github.com/repos/vuejs/vue/subscribers","subscription_url":"https://api.github.com/repos/vuejs/vue/subscription","commits_url":"https://api.github.com/repos/vuejs/vue/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs/vue/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs/vue/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs/vue/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs/vue/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs/vue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs/vue/merges","archive_url":"https://api.github.com/repos/vuejs/vue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs/vue/downloads","issues_url":"https://api.github.com/repos/vuejs/vue/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs/vue/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs/vue/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs/vue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs/vue/labels{/name}","releases_url":"https://api.github.com/repos/vuejs/vue/releases{/id}","deployments_url":"https://api.github.com/repos/vuejs/vue/deployments","created_at":"2013-07-29T03:24:51Z","updated_at":"2016-09-21T15:33:38Z","pushed_at":"2016-09-21T16:09:24Z","git_url":"git://github.com/vuejs/vue.git","ssh_url":"git@github.com:vuejs/vue.git","clone_url":"https://github.com/vuejs/vue.git","svn_url":"https://github.com/vuejs/vue","homepage":"http://vuejs.org","size":19432,"stargazers_count":27624,"watchers_count":27624,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3092,"mirror_url":null,"open_issues_count":48,"forks":3092,"open_issues":48,"watchers":27624,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/vuejs/vue/pulls/3713"},"html":{"href":"https://github.com/vuejs/vue/pull/3713"},"issue":{"href":"https://api.github.com/repos/vuejs/vue/issues/3713"},"comments":{"href":"https://api.github.com/repos/vuejs/vue/issues/3713/comments"},"review_comments":{"href":"https://api.github.com/repos/vuejs/vue/pulls/3713/comments"},"review_comment":{"href":"https://api.github.com/repos/vuejs/vue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuejs/vue/pulls/3713/commits"},"statuses":{"href":"https://api.github.com/repos/vuejs/vue/statuses/b65e602f119ca30e071f118de26d056b0cf758e7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"ktsn"}}