Closed NielsDM closed 8 years ago
@NielsDM Which typings did you install? My guess would be you downloaded npm install @types/d3 --save
?
This would imply, you are using typings still in line with D3 v3.5.x (The version number of the package pulled from at types will tell you based on the major and minor version.)
The behavior you described, should not occur with the definitions contained in this repo, in particular the ones for the individual D3 modules.
All definitions in here have been migrated and are now actively maintained in DefinitelyTyped (types-2.0 branch) That is the branch which feeds the @types organization on npm from which you can download the latest.
There is however an open issue affecting the definitions published for the "standard bundle", see DT issue 11367. That is the structural reason, why the bundle definitions are not published through DT yet and you are still getting only D3 v3 definitions when you download d3
types.
Pls, let me know, if this answers your question, or if there is another quirk... :wink:
The typings let me use d3.svg.arc() but in D3.js V4 you need to use d3.arc().