@deepkit/framework
Version:
12 lines (11 loc) • 363 B
TypeScript
import { AsyncLocalStorage } from 'async_hooks';
export type SimpleStore = {
[name: string]: any;
};
export declare class Zone {
static asyncLocalStorage?: AsyncLocalStorage<any>;
static enable(): void;
static current(): SimpleStore | undefined;
static run<T>(data: SimpleStore, cb: () => T): T;
}
export declare type __ΩSimpleStore = any[];