UNPKG

@appsemble/node-utils

Version:

NodeJS utilities used by Appsemble internally.

11 lines (10 loc) 377 B
import { AsyncLocalStorage } from 'node:async_hooks'; interface RequestContext { requestId: string; method: string; path: string; } export declare const requestStore: AsyncLocalStorage<RequestContext>; export declare function getRequestId(): string | undefined; export declare function createRequestContext(method: string, path: string): RequestContext; export {};