{"action":"created","comment":{"url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/comments/243471600","pull_request_review_id":187251356,"id":243471600,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzQ3MTYwMA==","diff_hunk":"@@ -383,6 +382,72 @@ export class Decoder<A> {\n     });\n   }\n \n+  /**\n+   * Decoder for fixed-length arrays, aka Tuples.\n+   *\n+   * Supports up to 8-tuples.\n+   *\n+   * Example:\n+   * ```\n+   * tuple([number(), number(), string()]).run([5, 10, 'px'])\n+   * // => {ok: true, result: [5, 10, 'px']}\n+   * ```\n+   */\n+  static tuple<A>(decoder: [Decoder<A>]): Decoder<[A]>;\n+  static tuple<A, B>(decoder: [Decoder<A>, Decoder<B>]): Decoder<[A, B]>;\n+  static tuple<A, B, C>(decoder: [Decoder<A>, Decoder<B>, Decoder<C>]): Decoder<[A, B, C]>;\n+  static tuple<A, B, C, D>(\n+    decoder: [Decoder<A>, Decoder<B>, Decoder<C>, Decoder<D>]\n+  ): Decoder<[A, B, C, D]>;","path":"src/decoder.ts","position":29,"original_position":106,"commit_id":"67ed73ecf0bedc737635e9dd87d560e6ec753eed","original_commit_id":"7885ddd8c5759026914bda5c323945e2cc187bbc","user":{"login":"r-k-b","id":2717397,"node_id":"MDQ6VXNlcjI3MTczOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/2717397?v=4","gravatar_id":"","url":"https://api.github.com/users/r-k-b","html_url":"https://github.com/r-k-b","followers_url":"https://api.github.com/users/r-k-b/followers","following_url":"https://api.github.com/users/r-k-b/following{/other_user}","gists_url":"https://api.github.com/users/r-k-b/gists{/gist_id}","starred_url":"https://api.github.com/users/r-k-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-k-b/subscriptions","organizations_url":"https://api.github.com/users/r-k-b/orgs","repos_url":"https://api.github.com/users/r-k-b/repos","events_url":"https://api.github.com/users/r-k-b/events{/privacy}","received_events_url":"https://api.github.com/users/r-k-b/received_events","type":"User","site_admin":false},"body":"Agreed.","created_at":"2018-12-21T02:04:34Z","updated_at":"2018-12-21T02:04:35Z","html_url":"https://github.com/mojotech/json-type-validation/pull/32#discussion_r243471600","pull_request_url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/comments/243471600"},"html":{"href":"https://github.com/mojotech/json-type-validation/pull/32#discussion_r243471600"},"pull_request":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32"}},"in_reply_to_id":242206624},"pull_request":{"url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32","id":238941780,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4OTQxNzgw","html_url":"https://github.com/mojotech/json-type-validation/pull/32","diff_url":"https://github.com/mojotech/json-type-validation/pull/32.diff","patch_url":"https://github.com/mojotech/json-type-validation/pull/32.patch","issue_url":"https://api.github.com/repos/mojotech/json-type-validation/issues/32","number":32,"state":"open","locked":false,"title":"Add tuple decoder","user":{"login":"r-k-b","id":2717397,"node_id":"MDQ6VXNlcjI3MTczOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/2717397?v=4","gravatar_id":"","url":"https://api.github.com/users/r-k-b","html_url":"https://github.com/r-k-b","followers_url":"https://api.github.com/users/r-k-b/followers","following_url":"https://api.github.com/users/r-k-b/following{/other_user}","gists_url":"https://api.github.com/users/r-k-b/gists{/gist_id}","starred_url":"https://api.github.com/users/r-k-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-k-b/subscriptions","organizations_url":"https://api.github.com/users/r-k-b/orgs","repos_url":"https://api.github.com/users/r-k-b/repos","events_url":"https://api.github.com/users/r-k-b/events{/privacy}","received_events_url":"https://api.github.com/users/r-k-b/received_events","type":"User","site_admin":false},"body":"This adds support for decoding tuples, as mentioned in #31.\r\n\r\nNot 100% sure this uses the most appropriate solution; feedback welcomed!","created_at":"2018-12-16T01:42:09Z","updated_at":"2018-12-21T02:04:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d6b49b5a35dd0a0546819fd7a6125a3b3f8f03c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32/commits","review_comments_url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32/comments","review_comment_url":"https://api.github.com/repos/mojotech/json-type-validation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mojotech/json-type-validation/issues/32/comments","statuses_url":"https://api.github.com/repos/mojotech/json-type-validation/statuses/67ed73ecf0bedc737635e9dd87d560e6ec753eed","head":{"label":"r-k-b:master","ref":"master","sha":"67ed73ecf0bedc737635e9dd87d560e6ec753eed","user":{"login":"r-k-b","id":2717397,"node_id":"MDQ6VXNlcjI3MTczOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/2717397?v=4","gravatar_id":"","url":"https://api.github.com/users/r-k-b","html_url":"https://github.com/r-k-b","followers_url":"https://api.github.com/users/r-k-b/followers","following_url":"https://api.github.com/users/r-k-b/following{/other_user}","gists_url":"https://api.github.com/users/r-k-b/gists{/gist_id}","starred_url":"https://api.github.com/users/r-k-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-k-b/subscriptions","organizations_url":"https://api.github.com/users/r-k-b/orgs","repos_url":"https://api.github.com/users/r-k-b/repos","events_url":"https://api.github.com/users/r-k-b/events{/privacy}","received_events_url":"https://api.github.com/users/r-k-b/received_events","type":"User","site_admin":false},"repo":{"id":161735165,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE3MzUxNjU=","name":"json-type-validation","full_name":"r-k-b/json-type-validation","private":false,"owner":{"login":"r-k-b","id":2717397,"node_id":"MDQ6VXNlcjI3MTczOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/2717397?v=4","gravatar_id":"","url":"https://api.github.com/users/r-k-b","html_url":"https://github.com/r-k-b","followers_url":"https://api.github.com/users/r-k-b/followers","following_url":"https://api.github.com/users/r-k-b/following{/other_user}","gists_url":"https://api.github.com/users/r-k-b/gists{/gist_id}","starred_url":"https://api.github.com/users/r-k-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-k-b/subscriptions","organizations_url":"https://api.github.com/users/r-k-b/orgs","repos_url":"https://api.github.com/users/r-k-b/repos","events_url":"https://api.github.com/users/r-k-b/events{/privacy}","received_events_url":"https://api.github.com/users/r-k-b/received_events","type":"User","site_admin":false},"html_url":"https://github.com/r-k-b/json-type-validation","description":"TypeScript JSON type validation","fork":true,"url":"https://api.github.com/repos/r-k-b/json-type-validation","forks_url":"https://api.github.com/repos/r-k-b/json-type-validation/forks","keys_url":"https://api.github.com/repos/r-k-b/json-type-validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r-k-b/json-type-validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r-k-b/json-type-validation/teams","hooks_url":"https://api.github.com/repos/r-k-b/json-type-validation/hooks","issue_events_url":"https://api.github.com/repos/r-k-b/json-type-validation/issues/events{/number}","events_url":"https://api.github.com/repos/r-k-b/json-type-validation/events","assignees_url":"https://api.github.com/repos/r-k-b/json-type-validation/assignees{/user}","branches_url":"https://api.github.com/repos/r-k-b/json-type-validation/branches{/branch}","tags_url":"https://api.github.com/repos/r-k-b/json-type-validation/tags","blobs_url":"https://api.github.com/repos/r-k-b/json-type-validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r-k-b/json-type-validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r-k-b/json-type-validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/r-k-b/json-type-validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r-k-b/json-type-validation/statuses/{sha}","languages_url":"https://api.github.com/repos/r-k-b/json-type-validation/languages","stargazers_url":"https://api.github.com/repos/r-k-b/json-type-validation/stargazers","contributors_url":"https://api.github.com/repos/r-k-b/json-type-validation/contributors","subscribers_url":"https://api.github.com/repos/r-k-b/json-type-validation/subscribers","subscription_url":"https://api.github.com/repos/r-k-b/json-type-validation/subscription","commits_url":"https://api.github.com/repos/r-k-b/json-type-validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/r-k-b/json-type-validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/r-k-b/json-type-validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/r-k-b/json-type-validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/r-k-b/json-type-validation/contents/{+path}","compare_url":"https://api.github.com/repos/r-k-b/json-type-validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r-k-b/json-type-validation/merges","archive_url":"https://api.github.com/repos/r-k-b/json-type-validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r-k-b/json-type-validation/downloads","issues_url":"https://api.github.com/repos/r-k-b/json-type-validation/issues{/number}","pulls_url":"https://api.github.com/repos/r-k-b/json-type-validation/pulls{/number}","milestones_url":"https://api.github.com/repos/r-k-b/json-type-validation/milestones{/number}","notifications_url":"https://api.github.com/repos/r-k-b/json-type-validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r-k-b/json-type-validation/labels{/name}","releases_url":"https://api.github.com/repos/r-k-b/json-type-validation/releases{/id}","deployments_url":"https://api.github.com/repos/r-k-b/json-type-validation/deployments","created_at":"2018-12-14T05:19:17Z","updated_at":"2018-12-21T01:59:26Z","pushed_at":"2018-12-21T01:59:25Z","git_url":"git://github.com/r-k-b/json-type-validation.git","ssh_url":"git@github.com:r-k-b/json-type-validation.git","clone_url":"https://github.com/r-k-b/json-type-validation.git","svn_url":"https://github.com/r-k-b/json-type-validation","homepage":null,"size":348,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"mojotech:master","ref":"master","sha":"95b24eaf3c5d36b5adac7fe5e5e5288458ea9f16","user":{"login":"mojotech","id":314035,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDAzNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/314035?v=4","gravatar_id":"","url":"https://api.github.com/users/mojotech","html_url":"https://github.com/mojotech","followers_url":"https://api.github.com/users/mojotech/followers","following_url":"https://api.github.com/users/mojotech/following{/other_user}","gists_url":"https://api.github.com/users/mojotech/gists{/gist_id}","starred_url":"https://api.github.com/users/mojotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojotech/subscriptions","organizations_url":"https://api.github.com/users/mojotech/orgs","repos_url":"https://api.github.com/users/mojotech/repos","events_url":"https://api.github.com/users/mojotech/events{/privacy}","received_events_url":"https://api.github.com/users/mojotech/received_events","type":"Organization","site_admin":false},"repo":{"id":119089949,"node_id":"MDEwOlJlcG9zaXRvcnkxMTkwODk5NDk=","name":"json-type-validation","full_name":"mojotech/json-type-validation","private":false,"owner":{"login":"mojotech","id":314035,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNDAzNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/314035?v=4","gravatar_id":"","url":"https://api.github.com/users/mojotech","html_url":"https://github.com/mojotech","followers_url":"https://api.github.com/users/mojotech/followers","following_url":"https://api.github.com/users/mojotech/following{/other_user}","gists_url":"https://api.github.com/users/mojotech/gists{/gist_id}","starred_url":"https://api.github.com/users/mojotech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojotech/subscriptions","organizations_url":"https://api.github.com/users/mojotech/orgs","repos_url":"https://api.github.com/users/mojotech/repos","events_url":"https://api.github.com/users/mojotech/events{/privacy}","received_events_url":"https://api.github.com/users/mojotech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mojotech/json-type-validation","description":"TypeScript JSON type validation","fork":false,"url":"https://api.github.com/repos/mojotech/json-type-validation","forks_url":"https://api.github.com/repos/mojotech/json-type-validation/forks","keys_url":"https://api.github.com/repos/mojotech/json-type-validation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mojotech/json-type-validation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mojotech/json-type-validation/teams","hooks_url":"https://api.github.com/repos/mojotech/json-type-validation/hooks","issue_events_url":"https://api.github.com/repos/mojotech/json-type-validation/issues/events{/number}","events_url":"https://api.github.com/repos/mojotech/json-type-validation/events","assignees_url":"https://api.github.com/repos/mojotech/json-type-validation/assignees{/user}","branches_url":"https://api.github.com/repos/mojotech/json-type-validation/branches{/branch}","tags_url":"https://api.github.com/repos/mojotech/json-type-validation/tags","blobs_url":"https://api.github.com/repos/mojotech/json-type-validation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mojotech/json-type-validation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mojotech/json-type-validation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mojotech/json-type-validation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mojotech/json-type-validation/statuses/{sha}","languages_url":"https://api.github.com/repos/mojotech/json-type-validation/languages","stargazers_url":"https://api.github.com/repos/mojotech/json-type-validation/stargazers","contributors_url":"https://api.github.com/repos/mojotech/json-type-validation/contributors","subscribers_url":"https://api.github.com/repos/mojotech/json-type-validation/subscribers","subscription_url":"https://api.github.com/repos/mojotech/json-type-validation/subscription","commits_url":"https://api.github.com/repos/mojotech/json-type-validation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mojotech/json-type-validation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mojotech/json-type-validation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mojotech/json-type-validation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mojotech/json-type-validation/contents/{+path}","compare_url":"https://api.github.com/repos/mojotech/json-type-validation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mojotech/json-type-validation/merges","archive_url":"https://api.github.com/repos/mojotech/json-type-validation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mojotech/json-type-validation/downloads","issues_url":"https://api.github.com/repos/mojotech/json-type-validation/issues{/number}","pulls_url":"https://api.github.com/repos/mojotech/json-type-validation/pulls{/number}","milestones_url":"https://api.github.com/repos/mojotech/json-type-validation/milestones{/number}","notifications_url":"https://api.github.com/repos/mojotech/json-type-validation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mojotech/json-type-validation/labels{/name}","releases_url":"https://api.github.com/repos/mojotech/json-type-validation/releases{/id}","deployments_url":"https://api.github.com/repos/mojotech/json-type-validation/deployments","created_at":"2018-01-26T18:47:48Z","updated_at":"2018-12-19T15:14:57Z","pushed_at":"2018-12-21T01:59:26Z","git_url":"git://github.com/mojotech/json-type-validation.git","ssh_url":"git@github.com:mojotech/json-type-validation.git","clone_url":"https://github.com/mojotech/json-type-validation.git","svn_url":"https://github.com/mojotech/json-type-validation","homepage":null,"size":305,"stargazers_count":35,"watchers_count":35,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":9,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32"},"html":{"href":"https://github.com/mojotech/json-type-validation/pull/32"},"issue":{"href":"https://api.github.com/repos/mojotech/json-type-validation/issues/32"},"comments":{"href":"https://api.github.com/repos/mojotech/json-type-validation/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mojotech/json-type-validation/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/mojotech/json-type-validation/statuses/67ed73ecf0bedc737635e9dd87d560e6ec753eed"}},"author_association":"NONE"}}
{"actor":{"display_login":"r-k-b"}}