Skip to main content
method AsyncLocalStorage.prototype.getStore
AsyncLocalStorage.prototype.getStore(): T | undefined
Deprecated

Returns the current store. If called outside of an asynchronous context initialized by calling asyncLocalStorage.run() or asyncLocalStorage.enterWith(), it returns undefined.

Return Type

T | undefined
Back to top