How can I write TypeScript definition files that depend on another definition file?

Viewed 1676

I'm writing a TypeScript definition file for an existing node library which use building node module like http and events.EventEmitter as a parameter.

my question is how can I write a definition file for this library? I have tried to copy these modules from node.d.ts into my own definition file, but I don't think this is a good idea.

2 Answers
Related