DefinitelyTyped/d3-selection
Tom Wanzek 59ff802dab [types-2.0] d3-selection and d3-transition JSDoc comments and fixes (#11497)
* d3-selection
* [Chore]: Completed JSDoc comments
* [Chore]: Removed outdated comments
* [Enhancement]: Added some explicit setter signatures, where using the setter with `null` as a value clears the set attribute, style, property
* [Enhancement]: Added explicit possible `null` return value for `touch(...)` if touch cannot, be found for the fiven identifier

* d3-transition and d3-selection
* **[chore](d3-selection)**: Added JSDoc comments for Selection<...> interface and param priority to style(...)
* **[enhancement](d3-selection)**: Started adding some `| null` for strict null checking.  In ValueFn passed into `attr`, `style`, `text`, `html`. Clarifying the ability to clear the respective property when `null` is returned. Also added `| null` to `node()` return type.
* **[chore](d3-transition)**: Added JSDoc comments.
* **[enhancement/fix](d3-transition)**: Updated signatures for `attrTween(...)` and `styleTween(...)` to align them with curent API doc. Added getter, remover and reduced permissible return type for interpolator to `string`. Added getter signature for `tween(...)`
* **[enhancement](d3-transition)**: Added ``| null` in preparation of strict null checking support to ValueFn return types for `attr`, `style`, and `text`. Same with return type for `node()`.
* [BREAKING](d3-transition): Return type of interpolators returned by tween factories in `attr` and `style` has been reduced to `string` as per API doc. (One test was adjusted accordingly)

* d3-transition
* [BREAKING](d3-transition): Fixed signatures for top-level `transition` method. The generics have been updated, as only the datum type in the returned transition needs to be typed. The rest is pre-determined based on a document root selection.
* **[Fix](d3-transition)**: When using an existing transition as an argument, the transition type is not constrained for the argument.
* Adjusted affected tests.

* d3-transition
* [chore](d3-transition): Updated patch version of reference module to 1.0.2
2016-10-03 07:49:43 -07:00
..
d3-selection-tests.ts d3-selection and version numbers. 2016-08-20 13:06:14 -04:00
index.d.ts [types-2.0] d3-selection and d3-transition JSDoc comments and fixes (#11497) 2016-10-03 07:49:43 -07:00
tsconfig.json Chore + Typo Correction: 2016-07-28 18:32:00 -04:00