{"action":"created","comment":{"url":"https://api.github.com/repos/stream-utils/raw-body/pulls/comments/109567118","pull_request_review_id":30677275,"id":109567118,"diff_hunk":"@@ -0,0 +1,61 @@\n+import { Readable } from 'stream';\n+\n+declare namespace getRawBody {\n+  export type Encoding = string | true;\n+\n+  export interface Options {\n+    /**\n+     * The length of the stream. If the contents of the stream do not add up to this length, an 400 error code is returned.\n+     */\n+    length?: number | string | null;\n+    /**\n+     * The byte limit of the body. This is the number of bytes or any string format supported by `bytes`, for example `1000`, `'500kb'` or `'3mb'`. If the body ends up being larger than this limit, a `413` error code is returned.\n+     */\n+    limit?: number | string | null;\n+    /**\n+     * The encoding to use to decode the body into a string. By default, a `Buffer` instance will be returned when no encoding is specified. Most likely, you want `utf-8`, so setting encoding to `true` will decode as `utf-8`. You can use any type of encoding supported by `iconv-lite`.\n+     */\n+    encoding?: Encoding | null;","path":"index.d.ts","position":18,"original_position":18,"commit_id":"c3524d936780d9ac459f252e71d00f20fb09ff86","original_commit_id":"c3524d936780d9ac459f252e71d00f20fb09ff86","user":{"login":"markis","id":1095826,"avatar_url":"https://avatars3.githubusercontent.com/u/1095826?v=3","gravatar_id":"","url":"https://api.github.com/users/markis","html_url":"https://github.com/markis","followers_url":"https://api.github.com/users/markis/followers","following_url":"https://api.github.com/users/markis/following{/other_user}","gists_url":"https://api.github.com/users/markis/gists{/gist_id}","starred_url":"https://api.github.com/users/markis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markis/subscriptions","organizations_url":"https://api.github.com/users/markis/orgs","repos_url":"https://api.github.com/users/markis/repos","events_url":"https://api.github.com/users/markis/events{/privacy}","received_events_url":"https://api.github.com/users/markis/received_events","type":"User","site_admin":false},"body":"The comment says it will accept `true`, maybe you could add `Encoding | true | null`?","created_at":"2017-04-04T02:42:59Z","updated_at":"2017-04-04T02:43:19Z","html_url":"https://github.com/stream-utils/raw-body/pull/53#discussion_r109567118","pull_request_url":"https://api.github.com/repos/stream-utils/raw-body/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/comments/109567118"},"html":{"href":"https://github.com/stream-utils/raw-body/pull/53#discussion_r109567118"},"pull_request":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/stream-utils/raw-body/pulls/53","id":103011068,"html_url":"https://github.com/stream-utils/raw-body/pull/53","diff_url":"https://github.com/stream-utils/raw-body/pull/53.diff","patch_url":"https://github.com/stream-utils/raw-body/pull/53.patch","issue_url":"https://api.github.com/repos/stream-utils/raw-body/issues/53","number":53,"state":"open","locked":false,"title":"Add TypeScript type definition to project","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars3.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"body":"Makes it simple for TypeScript users to require a typed version of the dependency.","created_at":"2017-01-24T21:50:56Z","updated_at":"2017-04-04T02:43:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34140ce8dafbe77a814c2d3d4c33e946849dbc95","assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars0.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"assignees":[{"login":"dougwilson","id":67512,"avatar_url":"https://avatars0.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/stream-utils/raw-body/pulls/53/commits","review_comments_url":"https://api.github.com/repos/stream-utils/raw-body/pulls/53/comments","review_comment_url":"https://api.github.com/repos/stream-utils/raw-body/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stream-utils/raw-body/issues/53/comments","statuses_url":"https://api.github.com/repos/stream-utils/raw-body/statuses/c3524d936780d9ac459f252e71d00f20fb09ff86","head":{"label":"blakeembrey:types","ref":"types","sha":"c3524d936780d9ac459f252e71d00f20fb09ff86","user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars3.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"repo":{"id":79957727,"name":"raw-body","full_name":"blakeembrey/raw-body","owner":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars3.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blakeembrey/raw-body","description":"Get and validate the raw body of a readable stream","fork":true,"url":"https://api.github.com/repos/blakeembrey/raw-body","forks_url":"https://api.github.com/repos/blakeembrey/raw-body/forks","keys_url":"https://api.github.com/repos/blakeembrey/raw-body/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blakeembrey/raw-body/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blakeembrey/raw-body/teams","hooks_url":"https://api.github.com/repos/blakeembrey/raw-body/hooks","issue_events_url":"https://api.github.com/repos/blakeembrey/raw-body/issues/events{/number}","events_url":"https://api.github.com/repos/blakeembrey/raw-body/events","assignees_url":"https://api.github.com/repos/blakeembrey/raw-body/assignees{/user}","branches_url":"https://api.github.com/repos/blakeembrey/raw-body/branches{/branch}","tags_url":"https://api.github.com/repos/blakeembrey/raw-body/tags","blobs_url":"https://api.github.com/repos/blakeembrey/raw-body/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blakeembrey/raw-body/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blakeembrey/raw-body/git/refs{/sha}","trees_url":"https://api.github.com/repos/blakeembrey/raw-body/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blakeembrey/raw-body/statuses/{sha}","languages_url":"https://api.github.com/repos/blakeembrey/raw-body/languages","stargazers_url":"https://api.github.com/repos/blakeembrey/raw-body/stargazers","contributors_url":"https://api.github.com/repos/blakeembrey/raw-body/contributors","subscribers_url":"https://api.github.com/repos/blakeembrey/raw-body/subscribers","subscription_url":"https://api.github.com/repos/blakeembrey/raw-body/subscription","commits_url":"https://api.github.com/repos/blakeembrey/raw-body/commits{/sha}","git_commits_url":"https://api.github.com/repos/blakeembrey/raw-body/git/commits{/sha}","comments_url":"https://api.github.com/repos/blakeembrey/raw-body/comments{/number}","issue_comment_url":"https://api.github.com/repos/blakeembrey/raw-body/issues/comments{/number}","contents_url":"https://api.github.com/repos/blakeembrey/raw-body/contents/{+path}","compare_url":"https://api.github.com/repos/blakeembrey/raw-body/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blakeembrey/raw-body/merges","archive_url":"https://api.github.com/repos/blakeembrey/raw-body/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blakeembrey/raw-body/downloads","issues_url":"https://api.github.com/repos/blakeembrey/raw-body/issues{/number}","pulls_url":"https://api.github.com/repos/blakeembrey/raw-body/pulls{/number}","milestones_url":"https://api.github.com/repos/blakeembrey/raw-body/milestones{/number}","notifications_url":"https://api.github.com/repos/blakeembrey/raw-body/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blakeembrey/raw-body/labels{/name}","releases_url":"https://api.github.com/repos/blakeembrey/raw-body/releases{/id}","deployments_url":"https://api.github.com/repos/blakeembrey/raw-body/deployments","created_at":"2017-01-24T21:47:22Z","updated_at":"2017-01-24T21:47:24Z","pushed_at":"2017-03-19T19:19:07Z","git_url":"git://github.com/blakeembrey/raw-body.git","ssh_url":"git@github.com:blakeembrey/raw-body.git","clone_url":"https://github.com/blakeembrey/raw-body.git","svn_url":"https://github.com/blakeembrey/raw-body","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"stream-utils:master","ref":"master","sha":"ed71967f8a3df40d0586fb0e9d42eef81410e9fe","user":{"login":"stream-utils","id":5658229,"avatar_url":"https://avatars0.githubusercontent.com/u/5658229?v=3","gravatar_id":"","url":"https://api.github.com/users/stream-utils","html_url":"https://github.com/stream-utils","followers_url":"https://api.github.com/users/stream-utils/followers","following_url":"https://api.github.com/users/stream-utils/following{/other_user}","gists_url":"https://api.github.com/users/stream-utils/gists{/gist_id}","starred_url":"https://api.github.com/users/stream-utils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stream-utils/subscriptions","organizations_url":"https://api.github.com/users/stream-utils/orgs","repos_url":"https://api.github.com/users/stream-utils/repos","events_url":"https://api.github.com/users/stream-utils/events{/privacy}","received_events_url":"https://api.github.com/users/stream-utils/received_events","type":"Organization","site_admin":false},"repo":{"id":12823654,"name":"raw-body","full_name":"stream-utils/raw-body","owner":{"login":"stream-utils","id":5658229,"avatar_url":"https://avatars0.githubusercontent.com/u/5658229?v=3","gravatar_id":"","url":"https://api.github.com/users/stream-utils","html_url":"https://github.com/stream-utils","followers_url":"https://api.github.com/users/stream-utils/followers","following_url":"https://api.github.com/users/stream-utils/following{/other_user}","gists_url":"https://api.github.com/users/stream-utils/gists{/gist_id}","starred_url":"https://api.github.com/users/stream-utils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stream-utils/subscriptions","organizations_url":"https://api.github.com/users/stream-utils/orgs","repos_url":"https://api.github.com/users/stream-utils/repos","events_url":"https://api.github.com/users/stream-utils/events{/privacy}","received_events_url":"https://api.github.com/users/stream-utils/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stream-utils/raw-body","description":"Get and validate the raw body of a readable stream","fork":false,"url":"https://api.github.com/repos/stream-utils/raw-body","forks_url":"https://api.github.com/repos/stream-utils/raw-body/forks","keys_url":"https://api.github.com/repos/stream-utils/raw-body/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stream-utils/raw-body/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stream-utils/raw-body/teams","hooks_url":"https://api.github.com/repos/stream-utils/raw-body/hooks","issue_events_url":"https://api.github.com/repos/stream-utils/raw-body/issues/events{/number}","events_url":"https://api.github.com/repos/stream-utils/raw-body/events","assignees_url":"https://api.github.com/repos/stream-utils/raw-body/assignees{/user}","branches_url":"https://api.github.com/repos/stream-utils/raw-body/branches{/branch}","tags_url":"https://api.github.com/repos/stream-utils/raw-body/tags","blobs_url":"https://api.github.com/repos/stream-utils/raw-body/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stream-utils/raw-body/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stream-utils/raw-body/git/refs{/sha}","trees_url":"https://api.github.com/repos/stream-utils/raw-body/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stream-utils/raw-body/statuses/{sha}","languages_url":"https://api.github.com/repos/stream-utils/raw-body/languages","stargazers_url":"https://api.github.com/repos/stream-utils/raw-body/stargazers","contributors_url":"https://api.github.com/repos/stream-utils/raw-body/contributors","subscribers_url":"https://api.github.com/repos/stream-utils/raw-body/subscribers","subscription_url":"https://api.github.com/repos/stream-utils/raw-body/subscription","commits_url":"https://api.github.com/repos/stream-utils/raw-body/commits{/sha}","git_commits_url":"https://api.github.com/repos/stream-utils/raw-body/git/commits{/sha}","comments_url":"https://api.github.com/repos/stream-utils/raw-body/comments{/number}","issue_comment_url":"https://api.github.com/repos/stream-utils/raw-body/issues/comments{/number}","contents_url":"https://api.github.com/repos/stream-utils/raw-body/contents/{+path}","compare_url":"https://api.github.com/repos/stream-utils/raw-body/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stream-utils/raw-body/merges","archive_url":"https://api.github.com/repos/stream-utils/raw-body/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stream-utils/raw-body/downloads","issues_url":"https://api.github.com/repos/stream-utils/raw-body/issues{/number}","pulls_url":"https://api.github.com/repos/stream-utils/raw-body/pulls{/number}","milestones_url":"https://api.github.com/repos/stream-utils/raw-body/milestones{/number}","notifications_url":"https://api.github.com/repos/stream-utils/raw-body/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stream-utils/raw-body/labels{/name}","releases_url":"https://api.github.com/repos/stream-utils/raw-body/releases{/id}","deployments_url":"https://api.github.com/repos/stream-utils/raw-body/deployments","created_at":"2013-09-14T03:11:58Z","updated_at":"2017-03-28T17:16:26Z","pushed_at":"2017-04-01T05:34:55Z","git_url":"git://github.com/stream-utils/raw-body.git","ssh_url":"git@github.com:stream-utils/raw-body.git","clone_url":"https://github.com/stream-utils/raw-body.git","svn_url":"https://github.com/stream-utils/raw-body","homepage":null,"size":156,"stargazers_count":117,"watchers_count":117,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":2,"forks":16,"open_issues":2,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/53"},"html":{"href":"https://github.com/stream-utils/raw-body/pull/53"},"issue":{"href":"https://api.github.com/repos/stream-utils/raw-body/issues/53"},"comments":{"href":"https://api.github.com/repos/stream-utils/raw-body/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stream-utils/raw-body/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/stream-utils/raw-body/statuses/c3524d936780d9ac459f252e71d00f20fb09ff86"}}}}
{"actor":{"display_login":"markis"}}