Commit Graph

2 Commits

Author SHA1 Message Date
Tom Wanzek
133d79faac fix(d3-fetch): update signatures and expand JSDoc comments (#23378)
* fix(d3-fetch):  update signatures and expand JSDoc comments

* fix(image): init object is not request init, but rather initializes image element properties
* fix(json): add generic parameter to allow return type casting
* fix(csv, dsv, tsv): overload signatures to be more specific about return type (with or without row parsing function).
* fix(csv, dsv, tsv): update row parsing function signature to be in line with parser signature in d3-dsv, which is called under the hood.
* chore(tslint): add tslint rules to allow signature overloading and single-use generic
* doc(*) Expand JSDoc comments
* chore(tests): update tests

* chore(d3-fetch): add validation reference patch release version
2018-02-08 07:59:55 -08:00
Hugues Stefanski
3c357a1ccf Add types for [d3-fetch](https://github.com/d3/d3-fetch) (#23324)
* Updated d3-geo to reflect version 1.9.0: added fitWidth and fitHeight methods

* Fix asterisk position

* Missing space

* Added spacing between methods

* Added tests for d3-geo `fitHeight` and `fitWidth`

* Backbone for d3-fetch

* Completed fetch API

* Strong typings of parsing methods

* Partial d3-fetch tests

* Completed tests for d3-fetch

* Reste library to es6 in d3-fetch

* Fix linting errors

* tentative fix TS 2.1

* Specific types for d3-fetch

* Fix test on d3-fetch

* Removed generic used only once for json function in d3-fetch

* Fix d3-fetch test
2018-01-31 14:45:59 -08:00