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.