UNPKG

cls-proxify

Version:

Logging on steroids with CLS and Proxy. Integrated with express, koa, fastify.

13 lines (12 loc) 487 B
export interface ClsProxifyStorage<T> { set(proxy: T): void; get(): T | undefined; } export declare class ClsHookedStorage<T = unknown> implements ClsProxifyStorage<T> { readonly namespace: import("cls-hooked").Namespace; protected readonly key = "cls-proxify"; set(proxy: T): void; get(): any; } export declare const setClsHookedStorage: (newClsHookedStorage: ClsHookedStorage) => void; export declare const getClsHookedStorage: () => ClsHookedStorage<unknown>;