UNPKG

482 BTypeScriptView Raw
1import { ContextId } from '../injector/instance-wrapper';
2export declare function createContextId(): ContextId;
3export declare class ContextIdFactory {
4 /**
5 * Generates a context identifier based on the request object.
6 */
7 static create(): ContextId;
8 /**
9 * Generates a random identifier to track asynchronous execution context.
10 * @param request request object
11 */
12 static getByRequest<T extends Record<any, any> = any>(request: T): ContextId;
13}