method AsyncLocalStorage.prototype.getStore
Jump to headingAsyncLocalStorage.prototype.getStore(): T | undefinedReturns the current store.
If called outside of an asynchronous context initialized by
calling asyncLocalStorage.run() or asyncLocalStorage.enterWith(), it
returns undefined.
Return Type Jump to heading
T | undefined