UNPKG

@apiratorjs/async-context

Version:

A Node.js async context library leveraging the node:async_hooks module, supporting context merging and overriding.

8 lines 496 B
export type TContexStoreName = any; export type TNamedContextArgs<TCallbackResult> = [TContexStoreName, any, () => Promise<TCallbackResult> | TCallbackResult]; export type TFullContextArgs<TCallbackResult> = [AsyncContextStore, () => Promise<TCallbackResult> | TCallbackResult]; export declare class AsyncContextStore extends Map<TContexStoreName, any> { static fromObject(obj: Record<string, any>): AsyncContextStore; toPlain(): Record<string, any>; } //# sourceMappingURL=types.d.ts.map