I can make it better by running npm install @types/d3 and adding import * as D3 from "d3"; to the second line of node_modules/webcola/WebCola/index.d.ts.
But there is still an error because the latest version of @types/d3 makes Dispatch a generic type.
Also, there is currently a DefinitelyTyped type definition for webcola here. It would be nice to deprecate that in favor of the bundled types here.
I tried using this project in a simple environment:
I got:
I can make it better by running
npm install @types/d3
and addingimport * as D3 from "d3";
to the second line ofnode_modules/webcola/WebCola/index.d.ts
. But there is still an error because the latest version of@types/d3
makesDispatch
a generic type.Also, there is currently a DefinitelyTyped type definition for webcola here. It would be nice to deprecate that in favor of the bundled types here.