Skip to content

d3-zoom: Add needed type arguments#17053

Merged
1 commit merged intomasterfrom
d3-zoom
Jun 8, 2017
Merged

d3-zoom: Add needed type arguments#17053
1 commit merged intomasterfrom
d3-zoom

Conversation

@ghost
Copy link

@ghost ghost commented Jun 8, 2017

This is failing in typescript@next because we can't infer the type parameters in d3Zoom.zoom(), so we get a ZoomBehavior<Element, {}>.
The reason this causes compile errors now is that the Datum type parameter will now be checked covariantly. See microsoft/TypeScript#15104.
CC @tomwanzek @gustavderdrache @borisyankov

@gustavderdrache
Copy link
Contributor

👍 I'm pretty excited about this stricter variance checking.

@tomwanzek
Copy link
Contributor

For good measure: 👍

@ghost ghost merged commit dc27c37 into master Jun 8, 2017
@ghost ghost deleted the d3-zoom branch June 8, 2017 19:27
This pull request was closed.
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.

2 participants