I'm rewriting JavaScript code that has this in it:
for (name in streams) {
module.exports[name] = loggerFactory(name, streams[name].cw);
}
I haven't been able to figure out a way to do this in TypeScript, though. I did it manually for now, but it would be nice for it to be based on the "streams" object instead of having to manually update the exports.