tomwanzek / d3-v4-definitelytyped

[DEPRECATED] This repo was intended as a staging area for typescript definitions supporting the latest major release of D3js (i.e. version 4.1.x) by Mike Bostock. It has been migrated to DefinitelyTyped.
MIT License
53 stars 14 forks source link

[Request] - Instructions to try out the typings #97

Closed olivierboucher closed 8 years ago

olivierboucher commented 8 years ago

Hi Tom,

Sorry to file out this issue but I couldn't find your email anywhere. I just wanted to know what would be the easiest way to try out the typings. I'm already using typescript@next and I wondered if simply copy pasting the src would do it.

Thanks

tomwanzek commented 8 years ago

Hi Olivier,

If you have a look at the Module-Level Status section of the README, you will find an updated status of which module definitions have been migrated in an initial version to the DefinitelyTyped/types-2.0 branch and propagated to the npm @types organization. Where in initial version is available on @types, you can simply install the definition with e.g.

npm install @types/d3-selection --save

When you install them this way, TS2 will resolve the definitions correctly without any need for typings to be used.

This repo already reflects a few improvements, which I will in short order push as follow-ups through a DefinitelyTyped PR to these initial files, which will eventually also propagate to @types.

Hope this clarifies. Where there are known definition specific issues, you can check in this repo, until the migration is completed.

olivierboucher commented 8 years ago

Thanks a lot !