payload: {"action":"closed","number":1599,"pull_request":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599","id":288619243,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg4NjE5MjQz","html_url":"https://github.com/rustwasm/wasm-bindgen/pull/1599","diff_url":"https://github.com/rustwasm/wasm-bindgen/pull/1599.diff","patch_url":"https://github.com/rustwasm/wasm-bindgen/pull/1599.patch","issue_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1599","number":1599,"state":"closed","locked":false,"title":"Make the argument to init optional in the Typescript declaration too","user":{"login":"marienz","id":516706,"node_id":"MDQ6VXNlcjUxNjcwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/516706?v=4","gravatar_id":"","url":"https://api.github.com/users/marienz","html_url":"https://github.com/marienz","followers_url":"https://api.github.com/users/marienz/followers","following_url":"https://api.github.com/users/marienz/following{/other_user}","gists_url":"https://api.github.com/users/marienz/gists{/gist_id}","starred_url":"https://api.github.com/users/marienz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienz/subscriptions","organizations_url":"https://api.github.com/users/marienz/orgs","repos_url":"https://api.github.com/users/marienz/repos","events_url":"https://api.github.com/users/marienz/events{/privacy}","received_events_url":"https://api.github.com/users/marienz/received_events","type":"User","site_admin":false},"body":"Pull request #1579 made the argument to the generated init() function optional (when the target is \"web\"), but not in the .ts.d file. This brings the two back in sync.\r\n\r\nTested locally, using a .ts file that mostly contains the same code the \"without a bundler\" example includes in its index.html.","created_at":"2019-06-16T11:57:56Z","updated_at":"2019-06-17T12:32:10Z","closed_at":"2019-06-17T12:32:09Z","merged_at":"2019-06-17T12:32:09Z","merge_commit_sha":"379cad047a609c6a260d6678f1867fcae4982f88","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599/commits","review_comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599/comments","review_comment_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1599/comments","statuses_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/statuses/1b914572007923182af55757cdd1a948f6d89ae0","head":{"label":"marienz:typescript-init","ref":"typescript-init","sha":"1b914572007923182af55757cdd1a948f6d89ae0","user":{"login":"marienz","id":516706,"node_id":"MDQ6VXNlcjUxNjcwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/516706?v=4","gravatar_id":"","url":"https://api.github.com/users/marienz","html_url":"https://github.com/marienz","followers_url":"https://api.github.com/users/marienz/followers","following_url":"https://api.github.com/users/marienz/following{/other_user}","gists_url":"https://api.github.com/users/marienz/gists{/gist_id}","starred_url":"https://api.github.com/users/marienz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienz/subscriptions","organizations_url":"https://api.github.com/users/marienz/orgs","repos_url":"https://api.github.com/users/marienz/repos","events_url":"https://api.github.com/users/marienz/events{/privacy}","received_events_url":"https://api.github.com/users/marienz/received_events","type":"User","site_admin":false},"repo":{"id":192181174,"node_id":"MDEwOlJlcG9zaXRvcnkxOTIxODExNzQ=","name":"wasm-bindgen","full_name":"marienz/wasm-bindgen","private":false,"owner":{"login":"marienz","id":516706,"node_id":"MDQ6VXNlcjUxNjcwNg==","avatar_url":"https://avatars1.githubusercontent.com/u/516706?v=4","gravatar_id":"","url":"https://api.github.com/users/marienz","html_url":"https://github.com/marienz","followers_url":"https://api.github.com/users/marienz/followers","following_url":"https://api.github.com/users/marienz/following{/other_user}","gists_url":"https://api.github.com/users/marienz/gists{/gist_id}","starred_url":"https://api.github.com/users/marienz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienz/subscriptions","organizations_url":"https://api.github.com/users/marienz/orgs","repos_url":"https://api.github.com/users/marienz/repos","events_url":"https://api.github.com/users/marienz/events{/privacy}","received_events_url":"https://api.github.com/users/marienz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/marienz/wasm-bindgen","description":"Facilitating high-level interactions between wasm modules and JavaScript","fork":true,"url":"https://api.github.com/repos/marienz/wasm-bindgen","forks_url":"https://api.github.com/repos/marienz/wasm-bindgen/forks","keys_url":"https://api.github.com/repos/marienz/wasm-bindgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marienz/wasm-bindgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marienz/wasm-bindgen/teams","hooks_url":"https://api.github.com/repos/marienz/wasm-bindgen/hooks","issue_events_url":"https://api.github.com/repos/marienz/wasm-bindgen/issues/events{/number}","events_url":"https://api.github.com/repos/marienz/wasm-bindgen/events","assignees_url":"https://api.github.com/repos/marienz/wasm-bindgen/assignees{/user}","branches_url":"https://api.github.com/repos/marienz/wasm-bindgen/branches{/branch}","tags_url":"https://api.github.com/repos/marienz/wasm-bindgen/tags","blobs_url":"https://api.github.com/repos/marienz/wasm-bindgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marienz/wasm-bindgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marienz/wasm-bindgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/marienz/wasm-bindgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marienz/wasm-bindgen/statuses/{sha}","languages_url":"https://api.github.com/repos/marienz/wasm-bindgen/languages","stargazers_url":"https://api.github.com/repos/marienz/wasm-bindgen/stargazers","contributors_url":"https://api.github.com/repos/marienz/wasm-bindgen/contributors","subscribers_url":"https://api.github.com/repos/marienz/wasm-bindgen/subscribers","subscription_url":"https://api.github.com/repos/marienz/wasm-bindgen/subscription","commits_url":"https://api.github.com/repos/marienz/wasm-bindgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/marienz/wasm-bindgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/marienz/wasm-bindgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/marienz/wasm-bindgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/marienz/wasm-bindgen/contents/{+path}","compare_url":"https://api.github.com/repos/marienz/wasm-bindgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marienz/wasm-bindgen/merges","archive_url":"https://api.github.com/repos/marienz/wasm-bindgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marienz/wasm-bindgen/downloads","issues_url":"https://api.github.com/repos/marienz/wasm-bindgen/issues{/number}","pulls_url":"https://api.github.com/repos/marienz/wasm-bindgen/pulls{/number}","milestones_url":"https://api.github.com/repos/marienz/wasm-bindgen/milestones{/number}","notifications_url":"https://api.github.com/repos/marienz/wasm-bindgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marienz/wasm-bindgen/labels{/name}","releases_url":"https://api.github.com/repos/marienz/wasm-bindgen/releases{/id}","deployments_url":"https://api.github.com/repos/marienz/wasm-bindgen/deployments","created_at":"2019-06-16T11:05:09Z","updated_at":"2019-06-16T11:05:13Z","pushed_at":"2019-06-16T11:52:14Z","git_url":"git://github.com/marienz/wasm-bindgen.git","ssh_url":"git@github.com:marienz/wasm-bindgen.git","clone_url":"https://github.com/marienz/wasm-bindgen.git","svn_url":"https://github.com/marienz/wasm-bindgen","homepage":"https://rustwasm.github.io/docs/wasm-bindgen/","size":14769,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rustwasm:master","ref":"master","sha":"9cac16f2d60bb63e048df19e0e01b1a2b97b8cf1","user":{"login":"rustwasm","id":37272798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjcyNzk4","avatar_url":"https://avatars1.githubusercontent.com/u/37272798?v=4","gravatar_id":"","url":"https://api.github.com/users/rustwasm","html_url":"https://github.com/rustwasm","followers_url":"https://api.github.com/users/rustwasm/followers","following_url":"https://api.github.com/users/rustwasm/following{/other_user}","gists_url":"https://api.github.com/users/rustwasm/gists{/gist_id}","starred_url":"https://api.github.com/users/rustwasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustwasm/subscriptions","organizations_url":"https://api.github.com/users/rustwasm/orgs","repos_url":"https://api.github.com/users/rustwasm/repos","events_url":"https://api.github.com/users/rustwasm/events{/privacy}","received_events_url":"https://api.github.com/users/rustwasm/received_events","type":"Organization","site_admin":false},"repo":{"id":114685405,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ2ODU0MDU=","name":"wasm-bindgen","full_name":"rustwasm/wasm-bindgen","private":false,"owner":{"login":"rustwasm","id":37272798,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjcyNzk4","avatar_url":"https://avatars1.githubusercontent.com/u/37272798?v=4","gravatar_id":"","url":"https://api.github.com/users/rustwasm","html_url":"https://github.com/rustwasm","followers_url":"https://api.github.com/users/rustwasm/followers","following_url":"https://api.github.com/users/rustwasm/following{/other_user}","gists_url":"https://api.github.com/users/rustwasm/gists{/gist_id}","starred_url":"https://api.github.com/users/rustwasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustwasm/subscriptions","organizations_url":"https://api.github.com/users/rustwasm/orgs","repos_url":"https://api.github.com/users/rustwasm/repos","events_url":"https://api.github.com/users/rustwasm/events{/privacy}","received_events_url":"https://api.github.com/users/rustwasm/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rustwasm/wasm-bindgen","description":"Facilitating high-level interactions between wasm modules and JavaScript","fork":false,"url":"https://api.github.com/repos/rustwasm/wasm-bindgen","forks_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/forks","keys_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/teams","hooks_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/hooks","issue_events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/events{/number}","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/events","assignees_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/assignees{/user}","branches_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/branches{/branch}","tags_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/tags","blobs_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/statuses/{sha}","languages_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/languages","stargazers_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/stargazers","contributors_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/contributors","subscribers_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/subscribers","subscription_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/subscription","commits_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/contents/{+path}","compare_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/merges","archive_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/downloads","issues_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues{/number}","pulls_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls{/number}","milestones_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/milestones{/number}","notifications_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/labels{/name}","releases_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/releases{/id}","deployments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/deployments","created_at":"2017-12-18T20:38:44Z","updated_at":"2019-06-17T12:18:55Z","pushed_at":"2019-06-17T12:32:09Z","git_url":"git://github.com/rustwasm/wasm-bindgen.git","ssh_url":"git@github.com:rustwasm/wasm-bindgen.git","clone_url":"https://github.com/rustwasm/wasm-bindgen.git","svn_url":"https://github.com/rustwasm/wasm-bindgen","homepage":"https://rustwasm.github.io/docs/wasm-bindgen/","size":14762,"stargazers_count":2246,"watchers_count":2246,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":261,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":102,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":261,"open_issues":102,"watchers":2246,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599"},"html":{"href":"https://github.com/rustwasm/wasm-bindgen/pull/1599"},"issue":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1599"},"comments":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/1599/comments"},"review_comments":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599/comments"},"review_comment":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/pulls/1599/commits"},"statuses":{"href":"https://api.github.com/repos/rustwasm/wasm-bindgen/statuses/1b914572007923182af55757cdd1a948f6d89ae0"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"alexcrichton","id":64996,"node_id":"MDQ6VXNlcjY0OTk2","avatar_url":"https://avatars1.githubusercontent.com/u/64996?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"maintainer_can_modify":false,"commits":1,"additions":5,"deletions":4,"changed_files":1}}
other: {"actor":{"display_login":"alexcrichton"}}