{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/93881122","pull_request_review_id":14413439,"id":93881122,"diff_hunk":"@@ -0,0 +1,131 @@\n+/// Definitions by: Kagami Sascha Rosylight <https://github.com/saschanaz>\r\n+\r\n+interface ReadableStreamSource {\r\n+    start?(controller: ReadableStreamDefaultController): void | Promise<void>;\r\n+    pull?(controller: ReadableStreamDefaultController): void | Promise<void>;\r\n+    cancel?(reason: string): void | Promise<void>;\r\n+}\r\n+\r\n+interface ReadableByteStreamSource {\r\n+    start?(controller: ReadableByteStreamController): void | Promise<void>;\r\n+    pull?(controller: ReadableByteStreamController): void | Promise<void>;\r\n+    cancel?(reason: string): void | Promise<void>;\r\n+\r\n+    type: \"bytes\";\r\n+}\r\n+\r\n+interface QueuingStrategy {\r\n+    highWaterMark?: number;\r\n+    size?(chunk: ArrayBufferView): number;\r\n+}\r\n+\r\n+declare class ReadableStream {\r\n+    constructor(underlyingSource?: ReadableStreamSource, strategy?: QueuingStrategy);\r\n+    constructor(underlyingSource?: ReadableByteStreamSource, strategy?: QueuingStrategy);\r\n+\r\n+    locked: boolean;\r\n+\r\n+    cancel(reason: string): Promise<void>;\r\n+    getReader(): ReadableStreamDefaultReader;\r\n+    getReader({ mode }: { mode: \"byob\" }): ReadableStreamBYOBReader;\r\n+    pipeThrough<T extends ReadableStream>({ writable, readable }: { writable: WritableStream, readable: T }): T;\r","path":"src/lib/streams.d.ts","position":31,"original_position":31,"commit_id":"e9e482148482b37ba06cd3909baf4ce2d8aeef66","original_commit_id":"e9e482148482b37ba06cd3909baf4ce2d8aeef66","user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"body":"seem from the [docs](https://streams.spec.whatwg.org/#rs-class-definition), this should take an additional `options` argument.","created_at":"2016-12-26T18:55:55Z","updated_at":"2016-12-26T19:02:26Z","html_url":"https://github.com/Microsoft/TypeScript/pull/12493#discussion_r93881122","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/93881122"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/12493#discussion_r93881122"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493","id":95234196,"html_url":"https://github.com/Microsoft/TypeScript/pull/12493","diff_url":"https://github.com/Microsoft/TypeScript/pull/12493.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/12493.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12493","number":12493,"state":"open","locked":false,"title":"Added the fetch api","user":{"login":"GamesMaxed","id":3083785,"avatar_url":"https://avatars.githubusercontent.com/u/3083785?v=3","gravatar_id":"","url":"https://api.github.com/users/GamesMaxed","html_url":"https://github.com/GamesMaxed","followers_url":"https://api.github.com/users/GamesMaxed/followers","following_url":"https://api.github.com/users/GamesMaxed/following{/other_user}","gists_url":"https://api.github.com/users/GamesMaxed/gists{/gist_id}","starred_url":"https://api.github.com/users/GamesMaxed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamesMaxed/subscriptions","organizations_url":"https://api.github.com/users/GamesMaxed/orgs","repos_url":"https://api.github.com/users/GamesMaxed/repos","events_url":"https://api.github.com/users/GamesMaxed/events{/privacy}","received_events_url":"https://api.github.com/users/GamesMaxed/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for submitting a pull request!\r\n\r\nHere's a checklist you might find useful.\r\n[ ] There is an associated issue that is labelled\r\n  'Bug' or 'Accepting PRs' or is in the Community milestone\r\n[ ] Code is up-to-date with the `master` branch\r\n[ ] You've successfully run `jake runtests` locally\r\n[ ] You've signed the CLA\r\n[ ] There are new or updated unit tests validating the change\r\n\r\nRefer to CONTRIBUTING.MD for more details.\r\n  https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n-->\r\n\r\nFixes #4948 \r\nI didn't know how to write unit tests for it since its actually a library change.\r\n","created_at":"2016-11-24T23:22:59Z","updated_at":"2016-12-26T19:02:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"766e7ac8a6d0f7aa8479f1847f5f3e60ebe3c5ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12493/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/e9e482148482b37ba06cd3909baf4ce2d8aeef66","head":{"label":"GamesMaxed:fetch-api","ref":"fetch-api","sha":"e9e482148482b37ba06cd3909baf4ce2d8aeef66","user":{"login":"GamesMaxed","id":3083785,"avatar_url":"https://avatars.githubusercontent.com/u/3083785?v=3","gravatar_id":"","url":"https://api.github.com/users/GamesMaxed","html_url":"https://github.com/GamesMaxed","followers_url":"https://api.github.com/users/GamesMaxed/followers","following_url":"https://api.github.com/users/GamesMaxed/following{/other_user}","gists_url":"https://api.github.com/users/GamesMaxed/gists{/gist_id}","starred_url":"https://api.github.com/users/GamesMaxed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamesMaxed/subscriptions","organizations_url":"https://api.github.com/users/GamesMaxed/orgs","repos_url":"https://api.github.com/users/GamesMaxed/repos","events_url":"https://api.github.com/users/GamesMaxed/events{/privacy}","received_events_url":"https://api.github.com/users/GamesMaxed/received_events","type":"User","site_admin":false},"repo":{"id":74710525,"name":"TypeScript","full_name":"GamesMaxed/TypeScript","owner":{"login":"GamesMaxed","id":3083785,"avatar_url":"https://avatars.githubusercontent.com/u/3083785?v=3","gravatar_id":"","url":"https://api.github.com/users/GamesMaxed","html_url":"https://github.com/GamesMaxed","followers_url":"https://api.github.com/users/GamesMaxed/followers","following_url":"https://api.github.com/users/GamesMaxed/following{/other_user}","gists_url":"https://api.github.com/users/GamesMaxed/gists{/gist_id}","starred_url":"https://api.github.com/users/GamesMaxed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamesMaxed/subscriptions","organizations_url":"https://api.github.com/users/GamesMaxed/orgs","repos_url":"https://api.github.com/users/GamesMaxed/repos","events_url":"https://api.github.com/users/GamesMaxed/events{/privacy}","received_events_url":"https://api.github.com/users/GamesMaxed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GamesMaxed/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":true,"url":"https://api.github.com/repos/GamesMaxed/TypeScript","forks_url":"https://api.github.com/repos/GamesMaxed/TypeScript/forks","keys_url":"https://api.github.com/repos/GamesMaxed/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GamesMaxed/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GamesMaxed/TypeScript/teams","hooks_url":"https://api.github.com/repos/GamesMaxed/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/GamesMaxed/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/GamesMaxed/TypeScript/events","assignees_url":"https://api.github.com/repos/GamesMaxed/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/GamesMaxed/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/GamesMaxed/TypeScript/tags","blobs_url":"https://api.github.com/repos/GamesMaxed/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GamesMaxed/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GamesMaxed/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/GamesMaxed/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GamesMaxed/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/GamesMaxed/TypeScript/languages","stargazers_url":"https://api.github.com/repos/GamesMaxed/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/GamesMaxed/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/GamesMaxed/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/GamesMaxed/TypeScript/subscription","commits_url":"https://api.github.com/repos/GamesMaxed/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/GamesMaxed/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/GamesMaxed/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/GamesMaxed/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/GamesMaxed/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/GamesMaxed/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GamesMaxed/TypeScript/merges","archive_url":"https://api.github.com/repos/GamesMaxed/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GamesMaxed/TypeScript/downloads","issues_url":"https://api.github.com/repos/GamesMaxed/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/GamesMaxed/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/GamesMaxed/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/GamesMaxed/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GamesMaxed/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/GamesMaxed/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/GamesMaxed/TypeScript/deployments","created_at":"2016-11-24T23:13:29Z","updated_at":"2016-11-24T23:14:23Z","pushed_at":"2016-11-24T23:43:35Z","git_url":"git://github.com/GamesMaxed/TypeScript.git","ssh_url":"git@github.com:GamesMaxed/TypeScript.git","clone_url":"https://github.com/GamesMaxed/TypeScript.git","svn_url":"https://github.com/GamesMaxed/TypeScript","homepage":"http://www.typescriptlang.org","size":323016,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"e128add54eb13192f1ec836a6623ae765fcaa758","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/TypeScript/deployments","created_at":"2014-06-17T15:28:39Z","updated_at":"2016-12-26T18:28:00Z","pushed_at":"2016-12-26T18:35:07Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":333075,"stargazers_count":17766,"watchers_count":17766,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2481,"mirror_url":null,"open_issues_count":1764,"forks":2481,"open_issues":1764,"watchers":17766,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/12493"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/12493"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/12493/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/12493/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/e9e482148482b37ba06cd3909baf4ce2d8aeef66"}}}}
{"actor":{"display_login":"mhegazy"}}