Hacker News new | ask | show | jobs
by serverlessmania 1374 days ago
You'll export a function from your esModule if you want to inject

export const myFn = (...deps) =>

You don't need anything else, for encapsulation you have the EsModule, that what OP meant.

1 comments

ah, thanks, I thought it was something different.
You have dynamic imports too if you need IoC.