Fix d3-selection/focus failure with strictNullChecks=true#12340
Fix d3-selection/focus failure with strictNullChecks=true#12340alitaheri wants to merge 1 commit into
Conversation
|
d3-force/index.d.ts to authors (@tomwanzek @gustavderdrache @borisyankov). Could you review this PR? Checklist
d3-selection/index.d.ts to authors (@tomwanzek @gustavderdrache @borisyankov). Could you review this PR? Checklist
|
|
Thx, I will review shortly. |
|
Failing tests here are OK, they are fixed by #12344. |
|
Pls do not merge before I reviewed. Thx. T |
|
@tomwanzek By the way, should I modifiy the |
|
@alitaheri The answer for d3-selection is not that straight-forward. First of and for the sake of cross-referencing, this is related to the tracking issue #11365. Enabling For D3, in some cases the API documentation is explicit enough to understand on the issue of return values in "failure modes" or similar circumstances, like callback functions. In others, it is necessary to validate against the actual source code, to see whether e.g. the a function returns I venture to say, it may not be as simple as adding So it will require going back to the documentation/source code. In any case the shape tests will have to be updated to ensure coverage of the This was a primary reason to prioritize issue #11366 regarding adding JSDoc comments to all the definitions first. In any case, because of the nature of the coupling between |
Please fill in this template.
types-2.0branch.If changing an existing definition: