I'm using Jason Davies' wordcloud in a TypeScript project, which builds on the D3 library. Specifically, it defines a new function cloud() that is defined as a member extended from D3.layout, as in D3.layout.cloud(). To specify this for TypeScript modules, I'd need it defined in an ambient module declaration, which we do have in Boris Yankov's definitive list of TypeScript declarations.
Is there a way to create a partial module declaration (.d.ts) file that extends an already existing declaration? Or would I have to edit my own copy of the standard declaration file (d3.d.ts) and insert the new member therein?
PS Thanks to Mr. Davies and Mr. Yankov's efforts, it's been more fun learning TypeScript this way :).