mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| d3-selection-tests.ts | ||
| index.d.ts | ||
| tsconfig.json | ||