Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[d3-shape] Update to Version 1.1 #16508

Merged
merged 4 commits into from
May 16, 2017
Merged

[d3-shape] Update to Version 1.1 #16508

merged 4 commits into from
May 16, 2017

Conversation

tomwanzek
Copy link
Contributor

@gustavderdrache This one is admittedly a bit more review effort, but the newly included functionality is all the more worth it...

Closes #16506.

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <https://github.com/d3/d3-shape/releases/tag/v1.1.0>
  • Increase the version number in the header if appropriate.
  • If you are making substantial changes, consider adding a tslint.json containing { "extends": "dslint/dt.json" }.

* [Feature] Add stackOffsetDiverging(...)
* [Chore] Update version numbers
* [Chore] Fix typos in JSDoc comments.
* [Feature] Add definition support for horizontal, vertical and radial link shape generator.
* [Fix] Added `"callable-types": false` to `tslint.json` as the two line-level disablers in `index.d.ts` seemed to be ignored.
* [Chore] Fixed some linting errors in text file
@dt-bot
Copy link
Member

dt-bot commented May 13, 2017

types/d3-shape/index.d.ts

to authors (@tomwanzek @gustavderdrache @borisyankov). Could you review this PR?
👍 or 👎?

Checklist

  • pass the Travis CI test?

@tomwanzek
Copy link
Contributor Author

@gustavderdrache when you have a minute, could you kindly have a look over this PR. It's blocking the pipeline a little, as PR #16536 depends on a tslint fix in it. Also, d3-shape 1.2 was just released which should be quick as a follow-up... Just want to avoid disconnecting too much from the actual D3 dependencies. Thanks.

*
* @param context null, to remove rendering context.
*/
context(context: null): this;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't consider this a blocker for now, but it's something to consider: we should really clean these up to use unions, since you can't preform a round trip:

const context = link.context();

// fails because the overloads aren't compatible with the return value of `.context()`:
link.context(context);

I'd like to see a cleanup so that we don't have to keep disabling unified-signatures in tslint.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should create a new tracking issue to discuss some of the clean-up/enhancements we need to consider an create a little roadmap (clean-up of current, TS2.2+ or TS2.3+ feature additions, transition planning)

So the unified signatures should definitely be a discussion item in there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will create one, when I have a second.

Copy link
Contributor

@gustavderdrache gustavderdrache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@tomwanzek
Copy link
Contributor Author

@andy-ms Could you kindly merge this PR. Thx in advance. T

@aozgaa aozgaa merged commit 299cbfa into DefinitelyTyped:master May 16, 2017
@tomwanzek tomwanzek deleted the d3-shape-v-1-1 branch May 19, 2017 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants