{"action":"opened","number":30717,"pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30717","id":232617233,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNjE3MjMz","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30717","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30717.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30717.patch","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30717","number":30717,"state":"open","locked":false,"title":"ansicolors: accurate types with recursion support","user":{"login":"balupton","id":61148,"node_id":"MDQ6VXNlcjYxMTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/61148?v=4","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"body":"Please fill in this template.\r\n\r\n- [x] Use a meaningful title for the pull request. Include the name of the package modified.\r\n- [x] Test the change in your own code. (Compile and run.)\r\n- [x] Add or edit tests to reflect the change. (Run with `npm test`.)\r\n- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).\r\n- [ ] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).\r\n- [ ] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).\r\n\r\nSelect one of these and delete the others:\r\n\r\nIf adding a new definition:\r\n- [ ] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`\r\n- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.\r\n- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.\r\n- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.\r\n\r\nIf changing an existing definition:\r\n- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>\r\n- [ ] Increase the version number in the header if appropriate.\r\n- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ \"extends\": \"dtslint/dt.json\" }`.\r\n\r\nIf removing a declaration:\r\n- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)\r\n- [ ] Delete the package's directory.\r\n- [ ] Add it to `notNeededPackages.json`.\r\n\r\n\r\n---\r\n\r\nReplaced the previous authorship notice as the whole file has been replaced.","created_at":"2018-11-21T10:48:22Z","updated_at":"2018-11-21T10:48:22Z","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/DefinitelyTyped/DefinitelyTyped/pulls/30717/commits","review_comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30717/comments","review_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30717/comments","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/3daac759f4ce410664691073d7a16f735e5fe66a","head":{"label":"balupton:patch-1","ref":"patch-1","sha":"3daac759f4ce410664691073d7a16f735e5fe66a","user":{"login":"balupton","id":61148,"node_id":"MDQ6VXNlcjYxMTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/61148?v=4","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"repo":{"id":158532548,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MzI1NDg=","name":"DefinitelyTyped","full_name":"balupton/DefinitelyTyped","private":false,"owner":{"login":"balupton","id":61148,"node_id":"MDQ6VXNlcjYxMTQ4","avatar_url":"https://avatars1.githubusercontent.com/u/61148?v=4","gravatar_id":"","url":"https://api.github.com/users/balupton","html_url":"https://github.com/balupton","followers_url":"https://api.github.com/users/balupton/followers","following_url":"https://api.github.com/users/balupton/following{/other_user}","gists_url":"https://api.github.com/users/balupton/gists{/gist_id}","starred_url":"https://api.github.com/users/balupton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balupton/subscriptions","organizations_url":"https://api.github.com/users/balupton/orgs","repos_url":"https://api.github.com/users/balupton/repos","events_url":"https://api.github.com/users/balupton/events{/privacy}","received_events_url":"https://api.github.com/users/balupton/received_events","type":"User","site_admin":false},"html_url":"https://github.com/balupton/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":true,"url":"https://api.github.com/repos/balupton/DefinitelyTyped","forks_url":"https://api.github.com/repos/balupton/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/balupton/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balupton/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balupton/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/balupton/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/balupton/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/balupton/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/balupton/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/balupton/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/balupton/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/balupton/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balupton/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balupton/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/balupton/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balupton/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/balupton/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/balupton/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/balupton/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/balupton/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/balupton/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/balupton/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/balupton/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/balupton/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/balupton/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/balupton/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/balupton/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balupton/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/balupton/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balupton/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/balupton/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/balupton/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/balupton/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/balupton/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balupton/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/balupton/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/balupton/DefinitelyTyped/deployments","created_at":"2018-11-21T10:42:44Z","updated_at":"2018-11-21T10:43:19Z","pushed_at":"2018-11-21T10:46:46Z","git_url":"git://github.com/balupton/DefinitelyTyped.git","ssh_url":"git@github.com:balupton/DefinitelyTyped.git","clone_url":"https://github.com/balupton/DefinitelyTyped.git","svn_url":"https://github.com/balupton/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":380407,"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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DefinitelyTyped:master","ref":"master","sha":"28e745f92dfa682e673a012d23ed0b4950d27d27","user":{"login":"DefinitelyTyped","id":3637556,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mzc1NTY=","avatar_url":"https://avatars1.githubusercontent.com/u/3637556?v=4","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"repo":{"id":6093316,"node_id":"MDEwOlJlcG9zaXRvcnk2MDkzMzE2","name":"DefinitelyTyped","full_name":"DefinitelyTyped/DefinitelyTyped","private":false,"owner":{"login":"DefinitelyTyped","id":3637556,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2Mzc1NTY=","avatar_url":"https://avatars1.githubusercontent.com/u/3637556?v=4","gravatar_id":"","url":"https://api.github.com/users/DefinitelyTyped","html_url":"https://github.com/DefinitelyTyped","followers_url":"https://api.github.com/users/DefinitelyTyped/followers","following_url":"https://api.github.com/users/DefinitelyTyped/following{/other_user}","gists_url":"https://api.github.com/users/DefinitelyTyped/gists{/gist_id}","starred_url":"https://api.github.com/users/DefinitelyTyped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefinitelyTyped/subscriptions","organizations_url":"https://api.github.com/users/DefinitelyTyped/orgs","repos_url":"https://api.github.com/users/DefinitelyTyped/repos","events_url":"https://api.github.com/users/DefinitelyTyped/events{/privacy}","received_events_url":"https://api.github.com/users/DefinitelyTyped/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","description":"The repository for high quality TypeScript type definitions.","fork":false,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","forks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/forks","keys_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/teams","hooks_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/hooks","issue_events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/events{/number}","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/events","assignees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/assignees{/user}","branches_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/branches{/branch}","tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/tags","blobs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/{sha}","languages_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/languages","stargazers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/stargazers","contributors_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contributors","subscribers_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscribers","subscription_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/subscription","commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/contents/{+path}","compare_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/merges","archive_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/downloads","issues_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues{/number}","pulls_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls{/number}","milestones_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/milestones{/number}","notifications_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels{/name}","releases_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/releases{/id}","deployments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/deployments","created_at":"2012-10-05T16:39:45Z","updated_at":"2018-11-21T09:55:21Z","pushed_at":"2018-11-21T10:32:25Z","git_url":"git://github.com/DefinitelyTyped/DefinitelyTyped.git","ssh_url":"git@github.com:DefinitelyTyped/DefinitelyTyped.git","clone_url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","svn_url":"https://github.com/DefinitelyTyped/DefinitelyTyped","homepage":"http://definitelytyped.org/","size":380407,"stargazers_count":18639,"watchers_count":18639,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15431,"mirror_url":null,"archived":false,"open_issues_count":2538,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":15431,"open_issues":2538,"watchers":18639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30717"},"html":{"href":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30717"},"issue":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30717"},"comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/30717/comments"},"review_comments":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30717/comments"},"review_comment":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/30717/commits"},"statuses":{"href":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/statuses/3daac759f4ce410664691073d7a16f735e5fe66a"}},"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":40,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"balupton"}}