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-quadtree: JsDoc, strictNullChecks and TS 2.3 #27648

Merged
merged 5 commits into from
Aug 6, 2018

Conversation

denisname
Copy link
Contributor

@denisname denisname commented Jul 28, 2018

Add JsDoc.

Activate strictNullChecks: type definition where already complete, so I just had to update the tests.

For strictFunctionTypes I have nothing to add.

TS 2.4: use default generics for quadtree.

In tests use ExpectError and change the isLeaf with a.length as it is the recommended way in the documentation.

Related #23611.

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.)

trailing whitespace
TypeScript Version: 2.3
@typescript-bot typescript-bot added this to Waiting for Reviewers in Pull Request Status Board Jul 28, 2018
@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Jul 28, 2018
@typescript-bot
Copy link
Contributor

typescript-bot commented Jul 28, 2018

@denisname Thank you for submitting this PR!

🔔 @tomwanzek @gustavderdrache @borisyankov - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@denisname
Copy link
Contributor Author

Just add a length property to leaf node. This makes it unnecessary to use any in type guards.
Also add a length property to internal node for more precise type.

@denisname denisname changed the title D3-Quadtree: JsDoc, strictNullChecks and TS 2.3 d3-quadtree: JsDoc, strictNullChecks and TS 2.3 Jul 30, 2018
@typescript-bot typescript-bot moved this from Waiting for Reviewers to Review in Pull Request Status Board Aug 4, 2018
@typescript-bot typescript-bot added the Unmerged The author did not merge the PR when it was ready. label Aug 4, 2018
@typescript-bot
Copy link
Contributor

After 5 days, no one has reviewed the PR 😞. A maintainer will be reviewing the PR in the next few days and will either merge it or request revisions. Thank you for your patience!

@sheetalkamat sheetalkamat merged commit c1b7e33 into DefinitelyTyped:master Aug 6, 2018
briandk pushed a commit to briandk/DefinitelyTyped that referenced this pull request Aug 7, 2018
* Add JsDoc and use default generics

* Activate strictNullChecks and use ExpectError

* Fix most linting

trailing whitespace
TypeScript Version: 2.3

* Fix void-return

* Add length property to internal and leaf nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Popular package This PR affects a popular package (as counted by NPM download counts). Unmerged The author did not merge the PR when it was ready.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants