{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/17780","repository_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped","labels_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/17780/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/17780/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/17780/events","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17780","id":240728761,"number":17780,"title":"[d3-selection] Allow a child selector to return a parent element","user":{"login":"btelles","id":19196,"avatar_url":"https://avatars1.githubusercontent.com/u/19196?v=3","gravatar_id":"","url":"https://api.github.com/users/btelles","html_url":"https://github.com/btelles","followers_url":"https://api.github.com/users/btelles/followers","following_url":"https://api.github.com/users/btelles/following{/other_user}","gists_url":"https://api.github.com/users/btelles/gists{/gist_id}","starred_url":"https://api.github.com/users/btelles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btelles/subscriptions","organizations_url":"https://api.github.com/users/btelles/orgs","repos_url":"https://api.github.com/users/btelles/repos","events_url":"https://api.github.com/users/btelles/events{/privacy}","received_events_url":"https://api.github.com/users/btelles/received_events","type":"User","site_admin":false},"labels":[{"id":395679059,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/Revision%20needed","name":"Revision needed","color":"b60205","default":false},{"id":57534397,"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/labels/The%20Travis%20CI%20build%20failed","name":"The Travis CI build failed","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-07-05T17:57:05Z","updated_at":"2017-07-12T17:39:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/pulls/17780","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17780","diff_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17780.diff","patch_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17780.patch"},"body":"The current type definition does not allow for the following:\r\n\r\n```javascript\r\nconst mySelection = d3.select(myParentNode).select('mySelector');\r\nmySelection.attr('...')\r\n\r\n```\r\n...because `mySelection` doesn't have a parent or pdatum, even though d3-selection allows for such chaining. This change adds the flexibility that the JS already allows.\r\n\r\nPlease 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] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).\r\n- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).\r\n- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).\r\n\r\n\r\nIf changing an existing definition:\r\n- [x] Provide a URL to documentation or source code which provides context for the suggested changes: \r\n  https://github.com/d3/d3-selection/blob/master/README.md#select\r\n  and the comment from the author explaining the flexibility:\r\n  https://github.com/d3/d3-selection/pull/133#issuecomment-312347299\r\n- [ ] Increase the version number in the header if appropriate. (not applicable)\r\n- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ \"extends\": \"dtslint/dt.json\" }`. (not applicable)"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/comments/314842867","html_url":"https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17780#issuecomment-314842867","issue_url":"https://api.github.com/repos/DefinitelyTyped/DefinitelyTyped/issues/17780","id":314842867,"user":{"login":"typescript-bot","id":23042052,"avatar_url":"https://avatars3.githubusercontent.com/u/23042052?v=3","gravatar_id":"","url":"https://api.github.com/users/typescript-bot","html_url":"https://github.com/typescript-bot","followers_url":"https://api.github.com/users/typescript-bot/followers","following_url":"https://api.github.com/users/typescript-bot/following{/other_user}","gists_url":"https://api.github.com/users/typescript-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/typescript-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typescript-bot/subscriptions","organizations_url":"https://api.github.com/users/typescript-bot/orgs","repos_url":"https://api.github.com/users/typescript-bot/repos","events_url":"https://api.github.com/users/typescript-bot/events{/privacy}","received_events_url":"https://api.github.com/users/typescript-bot/received_events","type":"User","site_admin":false},"created_at":"2017-07-12T17:39:41Z","updated_at":"2017-07-12T17:39:41Z","body":"<!--header {\"slug\":\"complaint\"} headerend-->\r\n@btelles Please fix the failures indicated in the Travis CI log.\r\n<sub><sub>This message was generated by a script</sub></sub>\r\n<!--footer bot @ 7/12/2017, 10:39:41 AM footerend-->"}}
{"actor":{"display_login":"typescript-bot"}}