MCPcopy
hub / github.com/ing-bank/lion / getSingletonInstance

Function getSingletonInstance

packages/singleton-manager/src/lazifyInstantiation.js:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 let /** @type any */ singletonInstance = null;
15
16 const getSingletonInstance = () => {
17 if (singletonInstance === null) {
18 singletonInstance = registerSingleton();
19 }
20
21 return singletonInstance;
22 };
23
24 /** @type {any} */ const proxy = new Proxy(
25 {},

Callers 4

getFunction · 0.85
setFunction · 0.85
getOwnPropertyDescriptorFunction · 0.85
getPrototypeOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected