mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-03-11 01:41:43 +00:00
9 lines
209 B
TypeScript
9 lines
209 B
TypeScript
import { AsyncLocalStorage } from 'async_hooks';
|
|
|
|
export interface RequestContextStore {
|
|
requestId?: string;
|
|
userId?: string;
|
|
}
|
|
|
|
export const requestContext = new AsyncLocalStorage<RequestContextStore>();
|