top | item 32918894

(no title)

depaulagu | 3 years ago

How do you dependency inject a ES module?

discuss

order

serverlessmania|3 years 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.

depaulagu|3 years ago

ah, thanks, I thought it was something different.