2 points · by joaoneto · 2y ago · 1 comment
export const someDep = new Dependency();
You can export a lot more of these statements.
and use it everywhere as these act as singletons in lets say a node JS environment.
GitHub - guarapi/guarapi-di-container: Dependency Injection Container for JavaScript/TypeScript
Dependency Injection Container for JavaScript/TypeScript - guarapi/guarapi-di-container
GitHub