While working on writing a d.ts file for worker-farm (https://github.com/rvagg/node-worker-farm), I encountered an issue.
The way worker-farm handles module.exports is as follows:
module.exports = farm
module.exports.end = end
When trying to replicate this in TypeScript like so:
export function end(workers:any):void;
export = workerFarm;
I get an error stating that export types cannot be mixed. Even using default does not allow me to export it.
Is there a way to define this in a declaration file?