UNPKG

481 BTypeScriptView Raw
1/// <reference types="node" />
2import { EventEmitter } from 'events';
3export interface RequestMetadata {
4 requestId: string;
5}
6export declare type StorageType = Map<string, any>;
7export declare type AsynchronousLocalStorage = {
8 get: <T>(key: string) => T | undefined;
9 set: <T>(key: string, value: T) => void;
10 bindEmitter(emitter: EventEmitter): void;
11 runWith: (callback: () => void, defaults?: Record<string, any>) => void;
12 storageImplementation: string;
13};