SolvedDefinitelyTyped [@types/d3] Please update types to last version of d3

If you know how to fix the issue, make a pull request instead.

Hello, I'm using D3-schalechromatic and D3 on their lasted release:

  • D3-schalechromatic: v 1.5.0 Git
  • D3: v 5.12.0 Git

Both releases, fix d3.interpolateTurbo. I've update all my node packages to last release:

  • D3-schalechromatic: v 1.5.0 npm
  • D3: v 5.12.0 npm

Then, I compile my project and I get the next message error:
"Property 'interpolateTurbo' does not exist on type 'typeof import("c:/Git_NewWeb/IDbox-Web-Front/IDbox-Web-Graphics-Component/node_modules/@types/d3/index")'"

The version of @types/d3 in my package.json is v 5.7.2 which is the last one. In the content of "nodemodules/@types/d3/index.d.ts" a message say that is based on version 5.7.0 of D3.

I'm not able to use d3.interpolateTurbo although d3 has fixed it.

31 Answers

✔️Accepted Answer

As a state of the art exercise, here is a table of where we stand:

Module Current Latest Up-to-date
d3 5.16.0 6.1.1
d3-array 2.0.3 2.8.0
d3-axis 2.0.0 2.0.0 ✔️
d3-brush 2.1.0 2.1.0 ✔️
d3-chord 2.0.0 2.0.0 ✔️
d3-collection 1.0.4 1.0.7
d3-color 2.0.0 2.0.0 ✔️
d3-contour 2.0.0 2.0.0 ✔️
d3-delaunay 5.3.0 5.3.0 ✔️
d3-dispatch 2.0.0 2.0.0 ✔️
d3-drag 2.0.0 2.0.0 ✔️
d3-dsv 2.0.0 2.0.0 ✔️
d3-ease 2.0.0 2.0.0 ✔️
d3-fetch 2.0.0 2.0.0 ✔️
d3-force 2.1.1 2.1.1 ✔️
d3-format 2.0.0 2.0.0 ✔️
d3-geo 2.0.1 2.0.1 ✔️
d3-hexbin 0.2.2 0.2.2 ✔️
d3-hierarchy 2.0.0 2.0.0 ✔️
d3-hsv 0.1.0 0.1.0 ✔️
d3-interpolate 2.0.1 2.0.1 ✔️
d3-path 2.0.0 2.0.0 ✔️
d3-polygon 2.0.0 2.0.0 ✔️
d3-quadtree 2.0.0 2.0.0 ✔️
d3-queue 3.0.7 3.0.7 ✔️
d3-random 2.2.2 2.2.2 ✔️
d3-request 1.0.6 1.0.6 ✔️
d3-require 1.2.2 1.2.4
d3-sankey 0.11 0.12.3
d3-scale 3.0.1 3.2.3
d3-scale-chromatic 2.0.0 2.0.0 ✔️
d3-selection 2.0.0 2.0.0 ✔️
d3-selection-multi 1.0.0 1.0.1
d3-shape 2.0.0 2.0.0 ✔️
d3-time 2.0.0 2.0.0 ✔️
d3-time-format 3.0.0 3.0.0 ✔️
d3-timer 2.0.0 2.0.0 ✔️
d3-transition 2.0.0 2.0.0 ✔️
d3-voronoi 1.1.4 1.1.4 ✔️
d3-zoom 1.8.3 2.0.0

I'll try getting d3-array to 2.1.0 right now. Do you think it would be useful to list all versions for a more in-depth tracking? A nice job was made in #45574 but maybe that's too detailed?

Other Answers:

I would also like to see the d3 types become up-to-date. I'm planning on working on this as I have time. Here's the order I'm planning on working on them in:

  • d3@5.8.2
    • d3-scale@2.2.2 (PR)
    • d3-transition@1.2.1 (PR)
  • d3@5.9.7 (PR)
    • d3-dsv@1.1.2 (PR)
  • d3@5.10.1
    • d3-brush@1.1.6 (PR)
    • d3-color@1.3.0 (PR)
    • d3-zoom@1.8.3 (PR)
  • d3@5.11.0
    • None (b.c. d3-scale-chromatic@1.5.0 is already completed)
  • d3@5.12.0
    • d3-format@1.4.5 (PR)
  • d3@5.13.1
    • d3-color@1.4.1 (PR)
    • d3-dsv@1.2.0 (PR)
    • d3-time-format@2.2.3 (PR)
    • d3-time@1.1.0 (PR)
  • d3@5.14.2
    • d3-transition@1.3.2 (PR)
  • d3@5.15.1
    • d3-interpolate@1.4.0 (PR)
  • d3@5.16.0 (PR)
    • d3-geo@1.12.1 (PR)
  • Pre d3@6.0.0
    • d3-fetch@1.2.0 (PR)
    • d3-time-format@2.3.0 (PR)
  • d3@6.0.0 (PR)
    • d3-array@2.1.0 (PR)
    • d3-array@2.2.0 (PR)
    • d3-array@2.3.3 (PR)
    • d3-array@2.4.0 (PR)
    • d3-array@2.5.1 (PR)
    • d3-array@2.6.0 (PR)
    • d3-axis@2.0.0 (PR)
    • d3-brush@2.0.1 (PR)
    • d3-brush@2.1.0 (PR)
    • d3-chord@2.0.0 (PR)
    • d3-color@2.0.0 (PR)
    • d3-contour@2.0.0 (PR)
    • d3-delaunay@5.0.2 (PR)
    • d3-delaunay@5.1.6 (PR)
    • d3-delaunay@5.2.1 (PR)
    • d3-delaunay@5.3.0 (PR)
    • d3-dispatch@2.0.0 (PR)
    • d3-drag@2.0.0 (PR)
    • d3-dsv@2.0.0 (PR)
    • d3-ease@2.0.0 (PR)
    • d3-fetch@2.0.0 (PR)
    • d3-force@2.0.1 (PR)
    • d3-force@2.1.1 (PR)
    • d3-format@2.0.0 (PR)
    • d3-geo@2.0.1 (PR)
    • d3-hierarchy@2.0.0 (PR)
    • d3-interpolate@2.0.1 (PR)
    • d3-path@2.0.0 (PR)
    • d3-polygon@2.0.0 (PR)
    • d3-quadtree@2.0.0 (PR)
    • d3-random@2.0.1 (PR)
    • d3-random@2.1.0 (PR)
    • d3-random@2.2.2 (PR)
    • d3-scale-chromatic@2.0.0 (PR)
    • d3-scale@3.0.1 (PR)
    • d3-scale@3.1.0 (PR)
    • d3-scale@3.2.3 (PR)
    • d3-selection@2.0.0 (PR)
    • d3-shape@2.0.0 (PR)
    • d3-time-format@3.0.0 (PR)
    • d3-time@2.0.0 (PR)
    • d3-timer@2.0.0 (PR)
    • d3-transition@2.0.0 (PR)
    • d3-zoom@2.0.0 (PR)
    • Add d3-delaunay and remove d3-collection and d3-voronoi
  • d3@6.1.1 (PR)
    • d3-array@2.7.1 (PR)
  • d3@6.2.0 (PR)
    • d3-array@2.8.0 (PR)

It only took 2 months, but I believe we're done! Thanks to everyone for helping out!

@Ledragon v6 is out -- any timeline for updating the types?

Hi,
Thanks for reporting the issue. D3 types have not (or its modules) have - unfotunately - not been updated in a while, so I think the method you are trying to use is not yet available in current version. I personally don't have much time to dedicate to this lately, and I guess the same goes for the other co-authors. The ideal path would be to update each type for each missed version, with the appropriate version number, which represents quite some work...
My apologies for the delay, I can't make any commitment with regard to delays; I might move onwards at some point, and will let you know then

More Issues: