UNPKG

@nestjs-steroids/async-context

Version:

NestJS Async Context based on async_hooks

12 lines (11 loc) 361 B
/// <reference types="node" /> import { AsyncLocalStorage } from 'async_hooks'; import { DynamicModule } from '@nestjs/common'; interface AsyncContextModuleOptions { isGlobal?: boolean; alsInstance?: AsyncLocalStorage<any>; } export declare class AsyncContextModule { static forRoot(options?: AsyncContextModuleOptions): DynamicModule; } export {};