@liberation-data/drivine
Version:
Best and fastest graph database client for TypeScript / Node.js. Provides a level of abstraction for building highly scalable applications, without compromising architectural integrity
14 lines (13 loc) • 535 B
TypeScript
/// <reference types="node" />
import { LocalStorage } from './LocalStorage';
import { AsyncLocalStorage } from 'async_hooks';
export declare class LocalStorageAls implements LocalStorage {
asyncLocalStorage: AsyncLocalStorage<Map<string, any>>;
run(fn: (...args: any[]) => void): void;
runAndReturn<T>(fn: (...args: any[]) => T): T;
runPromise<T>(fn: (...args: any[]) => Promise<T>): Promise<T>;
isInsideRun(): boolean;
get<T>(key: string): T;
set<T>(key: string, object: T): void;
tearDown(): void;
}