top | item 32918894 (no title) depaulagu | 3 years ago How do you dependency inject a ES module? discuss order hn newest serverlessmania|3 years ago You'll export a function from your esModule if you want to injectexport 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. load replies (1)
serverlessmania|3 years ago You'll export a function from your esModule if you want to injectexport 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. load replies (1)
serverlessmania|3 years ago
export const myFn = (...deps) =>
You don't need anything else, for encapsulation you have the EsModule, that what OP meant.
depaulagu|3 years ago