2 comments

[ 5.4 ms ] story [ 18.8 ms ] thread
Just curious, why would you do this instead of,

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.