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

d3-force: force.initialize should be optional #94

Closed spiffytech closed 8 years ago

spiffytech commented 8 years ago

According to the d3-force README, force.initialize is optional. The typings should accept a bare function as the force parameter for force.force(name, force).

tomwanzek commented 8 years ago

Thanks. You are indeed correct. I will make the corresponding fix with a PR I am getting ready with a minor change the the .force() method.