{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50","id":203931589,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzOTMxNTg5","html_url":"https://github.com/shahen94/react-native-switch/pull/50","diff_url":"https://github.com/shahen94/react-native-switch/pull/50.diff","patch_url":"https://github.com/shahen94/react-native-switch/pull/50.patch","issue_url":"https://api.github.com/repos/shahen94/react-native-switch/issues/50","number":50,"state":"open","locked":false,"title":"Add type definition for TypeScript","user":{"login":"VitorLuizC","id":9027363,"node_id":"MDQ6VXNlcjkwMjczNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/9027363?v=4","gravatar_id":"","url":"https://api.github.com/users/VitorLuizC","html_url":"https://github.com/VitorLuizC","followers_url":"https://api.github.com/users/VitorLuizC/followers","following_url":"https://api.github.com/users/VitorLuizC/following{/other_user}","gists_url":"https://api.github.com/users/VitorLuizC/gists{/gist_id}","starred_url":"https://api.github.com/users/VitorLuizC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitorLuizC/subscriptions","organizations_url":"https://api.github.com/users/VitorLuizC/orgs","repos_url":"https://api.github.com/users/VitorLuizC/repos","events_url":"https://api.github.com/users/VitorLuizC/events{/privacy}","received_events_url":"https://api.github.com/users/VitorLuizC/received_events","type":"User","site_admin":false},"body":"I've created a type definitions file based on Switch propTypes and it's source.\r\n\r\n### Reason\r\nA type definition file improve module consumers experience providing intellisense on IDEs (Ex. VSCode & Atom) and type safety for TypeScript.\r\n\r\n### Changes\r\n- Created type definitions files, `index.d.ts`;\r\n- Exposed type definitions on `package.json`'s `types` property;","created_at":"2018-07-25T18:57:37Z","updated_at":"2018-07-25T18:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50/commits","review_comments_url":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50/comments","review_comment_url":"https://api.github.com/repos/shahen94/react-native-switch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shahen94/react-native-switch/issues/50/comments","statuses_url":"https://api.github.com/repos/shahen94/react-native-switch/statuses/99d6cfb4e2b8e4babf597ea95cbfd8ed465ab610","head":{"label":"VitorLuizC:master","ref":"master","sha":"99d6cfb4e2b8e4babf597ea95cbfd8ed465ab610","user":{"login":"VitorLuizC","id":9027363,"node_id":"MDQ6VXNlcjkwMjczNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/9027363?v=4","gravatar_id":"","url":"https://api.github.com/users/VitorLuizC","html_url":"https://github.com/VitorLuizC","followers_url":"https://api.github.com/users/VitorLuizC/followers","following_url":"https://api.github.com/users/VitorLuizC/following{/other_user}","gists_url":"https://api.github.com/users/VitorLuizC/gists{/gist_id}","starred_url":"https://api.github.com/users/VitorLuizC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitorLuizC/subscriptions","organizations_url":"https://api.github.com/users/VitorLuizC/orgs","repos_url":"https://api.github.com/users/VitorLuizC/repos","events_url":"https://api.github.com/users/VitorLuizC/events{/privacy}","received_events_url":"https://api.github.com/users/VitorLuizC/received_events","type":"User","site_admin":false},"repo":{"id":142339876,"node_id":"MDEwOlJlcG9zaXRvcnkxNDIzMzk4NzY=","name":"react-native-switch","full_name":"VitorLuizC/react-native-switch","owner":{"login":"VitorLuizC","id":9027363,"node_id":"MDQ6VXNlcjkwMjczNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/9027363?v=4","gravatar_id":"","url":"https://api.github.com/users/VitorLuizC","html_url":"https://github.com/VitorLuizC","followers_url":"https://api.github.com/users/VitorLuizC/followers","following_url":"https://api.github.com/users/VitorLuizC/following{/other_user}","gists_url":"https://api.github.com/users/VitorLuizC/gists{/gist_id}","starred_url":"https://api.github.com/users/VitorLuizC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitorLuizC/subscriptions","organizations_url":"https://api.github.com/users/VitorLuizC/orgs","repos_url":"https://api.github.com/users/VitorLuizC/repos","events_url":"https://api.github.com/users/VitorLuizC/events{/privacy}","received_events_url":"https://api.github.com/users/VitorLuizC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitorLuizC/react-native-switch","description":"Customisable switch component for RN","fork":true,"url":"https://api.github.com/repos/VitorLuizC/react-native-switch","forks_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/forks","keys_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/teams","hooks_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/hooks","issue_events_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/issues/events{/number}","events_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/events","assignees_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/assignees{/user}","branches_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/branches{/branch}","tags_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/tags","blobs_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/languages","stargazers_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/stargazers","contributors_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/contributors","subscribers_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/subscribers","subscription_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/subscription","commits_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/contents/{+path}","compare_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/merges","archive_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/downloads","issues_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/issues{/number}","pulls_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/labels{/name}","releases_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/releases{/id}","deployments_url":"https://api.github.com/repos/VitorLuizC/react-native-switch/deployments","created_at":"2018-07-25T18:40:31Z","updated_at":"2018-07-25T18:48:23Z","pushed_at":"2018-07-25T18:48:22Z","git_url":"git://github.com/VitorLuizC/react-native-switch.git","ssh_url":"git@github.com:VitorLuizC/react-native-switch.git","clone_url":"https://github.com/VitorLuizC/react-native-switch.git","svn_url":"https://github.com/VitorLuizC/react-native-switch","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shahen94:master","ref":"master","sha":"e3b51e7e83c72886a45bda0f062bd55cd3b4446b","user":{"login":"shahen94","id":13334788,"node_id":"MDQ6VXNlcjEzMzM0Nzg4","avatar_url":"https://avatars0.githubusercontent.com/u/13334788?v=4","gravatar_id":"","url":"https://api.github.com/users/shahen94","html_url":"https://github.com/shahen94","followers_url":"https://api.github.com/users/shahen94/followers","following_url":"https://api.github.com/users/shahen94/following{/other_user}","gists_url":"https://api.github.com/users/shahen94/gists{/gist_id}","starred_url":"https://api.github.com/users/shahen94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahen94/subscriptions","organizations_url":"https://api.github.com/users/shahen94/orgs","repos_url":"https://api.github.com/users/shahen94/repos","events_url":"https://api.github.com/users/shahen94/events{/privacy}","received_events_url":"https://api.github.com/users/shahen94/received_events","type":"User","site_admin":false},"repo":{"id":71934450,"node_id":"MDEwOlJlcG9zaXRvcnk3MTkzNDQ1MA==","name":"react-native-switch","full_name":"shahen94/react-native-switch","owner":{"login":"shahen94","id":13334788,"node_id":"MDQ6VXNlcjEzMzM0Nzg4","avatar_url":"https://avatars0.githubusercontent.com/u/13334788?v=4","gravatar_id":"","url":"https://api.github.com/users/shahen94","html_url":"https://github.com/shahen94","followers_url":"https://api.github.com/users/shahen94/followers","following_url":"https://api.github.com/users/shahen94/following{/other_user}","gists_url":"https://api.github.com/users/shahen94/gists{/gist_id}","starred_url":"https://api.github.com/users/shahen94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahen94/subscriptions","organizations_url":"https://api.github.com/users/shahen94/orgs","repos_url":"https://api.github.com/users/shahen94/repos","events_url":"https://api.github.com/users/shahen94/events{/privacy}","received_events_url":"https://api.github.com/users/shahen94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shahen94/react-native-switch","description":"Customisable switch component for RN","fork":false,"url":"https://api.github.com/repos/shahen94/react-native-switch","forks_url":"https://api.github.com/repos/shahen94/react-native-switch/forks","keys_url":"https://api.github.com/repos/shahen94/react-native-switch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shahen94/react-native-switch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shahen94/react-native-switch/teams","hooks_url":"https://api.github.com/repos/shahen94/react-native-switch/hooks","issue_events_url":"https://api.github.com/repos/shahen94/react-native-switch/issues/events{/number}","events_url":"https://api.github.com/repos/shahen94/react-native-switch/events","assignees_url":"https://api.github.com/repos/shahen94/react-native-switch/assignees{/user}","branches_url":"https://api.github.com/repos/shahen94/react-native-switch/branches{/branch}","tags_url":"https://api.github.com/repos/shahen94/react-native-switch/tags","blobs_url":"https://api.github.com/repos/shahen94/react-native-switch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shahen94/react-native-switch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shahen94/react-native-switch/git/refs{/sha}","trees_url":"https://api.github.com/repos/shahen94/react-native-switch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shahen94/react-native-switch/statuses/{sha}","languages_url":"https://api.github.com/repos/shahen94/react-native-switch/languages","stargazers_url":"https://api.github.com/repos/shahen94/react-native-switch/stargazers","contributors_url":"https://api.github.com/repos/shahen94/react-native-switch/contributors","subscribers_url":"https://api.github.com/repos/shahen94/react-native-switch/subscribers","subscription_url":"https://api.github.com/repos/shahen94/react-native-switch/subscription","commits_url":"https://api.github.com/repos/shahen94/react-native-switch/commits{/sha}","git_commits_url":"https://api.github.com/repos/shahen94/react-native-switch/git/commits{/sha}","comments_url":"https://api.github.com/repos/shahen94/react-native-switch/comments{/number}","issue_comment_url":"https://api.github.com/repos/shahen94/react-native-switch/issues/comments{/number}","contents_url":"https://api.github.com/repos/shahen94/react-native-switch/contents/{+path}","compare_url":"https://api.github.com/repos/shahen94/react-native-switch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shahen94/react-native-switch/merges","archive_url":"https://api.github.com/repos/shahen94/react-native-switch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shahen94/react-native-switch/downloads","issues_url":"https://api.github.com/repos/shahen94/react-native-switch/issues{/number}","pulls_url":"https://api.github.com/repos/shahen94/react-native-switch/pulls{/number}","milestones_url":"https://api.github.com/repos/shahen94/react-native-switch/milestones{/number}","notifications_url":"https://api.github.com/repos/shahen94/react-native-switch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shahen94/react-native-switch/labels{/name}","releases_url":"https://api.github.com/repos/shahen94/react-native-switch/releases{/id}","deployments_url":"https://api.github.com/repos/shahen94/react-native-switch/deployments","created_at":"2016-10-25T20:06:05Z","updated_at":"2018-07-25T18:22:06Z","pushed_at":"2018-07-05T03:20:26Z","git_url":"git://github.com/shahen94/react-native-switch.git","ssh_url":"git@github.com:shahen94/react-native-switch.git","clone_url":"https://github.com/shahen94/react-native-switch.git","svn_url":"https://github.com/shahen94/react-native-switch","homepage":null,"size":47,"stargazers_count":70,"watchers_count":70,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":52,"open_issues":14,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50"},"html":{"href":"https://github.com/shahen94/react-native-switch/pull/50"},"issue":{"href":"https://api.github.com/repos/shahen94/react-native-switch/issues/50"},"comments":{"href":"https://api.github.com/repos/shahen94/react-native-switch/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/shahen94/react-native-switch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shahen94/react-native-switch/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/shahen94/react-native-switch/statuses/99d6cfb4e2b8e4babf597ea95cbfd8ed465ab610"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":36,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"VitorLuizC"}}