Commit Graph

12 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Tom Wanzek
be22b2cfce style(d3-scale): drop Array<T> in union type with ReadonlyArray<T> 2018-02-09 12:55:11 -05:00
Tom Wanzek
9ecd90e9e8 refactor(*): refactor d3-scale and d3-scale-chromatic
BREAKING CHANGE:
* refactor(d3-scale) update to major version 2.0. As a breaking change all color related features are removed. schemeCategory20x features are removed without replacement. All other color features are moved to d3-scale-chromatic 1.2
* refactor(d3-scale-chromatic): update to minor version 1.2 by including refactored features dropped from  d3-scale 2.0: schemeCategory10 and color interpolators.
* fix(d3-scale) All input arguments for domain or range arrays now also permit ReadonlyArray<T> as inputs. This change allows seamless integration with the color schemes defined in d3-scale-chromatic. This change has been applied to both d3-scale 1.x and 2.x.
* chore(d3-scale-chromatic) activate strictNullChecks
* chore(d3-scale) move d3-scale 1.x into legacy folder `v1` and update tsconfig.json including path mapping for d3-scale itself to pick up legacy version in its own legacy tests
* test(d3-scale) update tests including integration test with d3-scale-chromatic
* test(d3-scale-chromatic) update tests. Including generalized assignment tests for interplators and schemes.
* chore(*) update version numbers for d3-scale and d3-scale-chromatic
2018-02-08 16:50:46 -05:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Tom Van Rompaey
eb79ad886b
expexted -> expected 2017-12-18 15:49:42 +08:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
kkpoon
55c559b2ca Fix d3-scale TS2304: Cannot find name 'Range' (#16815)
* Fix d3-scale TS2304: Cannot find name 'Range'

- fix `range` function in `ScaleIdentity` use generic Range but not declared

* fixup! Fix d3-scale TS2304: Cannot find name 'Range'
2017-06-01 06:32:55 -07:00
Tom Wanzek
8ae97451d5 D3 Modules Linting (#16536)
* [d3-collection] Linted
* Added and completed linting
* Replaced `Object` with `any` adding TODO to change to proper `object` type when publishing the definitions to use TS 2.2+

* [d3-color] Linted

* [d3-dispatch] Linted

* [d3-hsv]  Linted

* [d3-interpolate] Linted. `Object` to `any`
* Replace use of `Object` as extension basis with `any` for now. Added TODO to change it to use the `object` type, when updating the definitions to formally use TS2.2+

* [d3-path] Linted.

* [d3-polygon] Linted.

* [d3-quadtree] Linted.

* [d3-queue] Linted.

* [d3-request] Linted.

* [d3-scale-chromatic] Linted.

* [d3-time-format] Linted.

* [d3-time] Linted.

* [d3-timer] Linted.

* [d3-voronoi] Linted.

* [d3-scale] Move callable-type lint deactivation to tslint.json
* line level deactivation was ignored.
2017-05-19 07:13:46 -07:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Andy
6a285d2dcf Lint d3-* packages (#15523) 2017-03-30 14:12:02 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00