nats-micro
Version:
NATS micro compatible extra-lightweight microservice library
8 lines (7 loc) • 310 B
TypeScript
export * from './callHandler.js';
export * from './misc.js';
export * from './wrapMethod.js';
export * from './wrapMethodSafe.js';
export * from './threadContext.js';
export type Action = (...args: any[]) => any;
export declare function attachThreadContext<T extends Action>(threadId: string, callback: T): T;