UNPKG

391 BTypeScriptView Raw
1import { BaseRpcContext } from './base-rpc.context';
2declare type NatsContextArgs = [string, any];
3export declare class NatsContext extends BaseRpcContext<NatsContextArgs> {
4 constructor(args: NatsContextArgs);
5 /**
6 * Returns the name of the subject.
7 */
8 getSubject(): string;
9 /**
10 * Returns message headers (if exist).
11 */
12 getHeaders(): any;
13}
14export {};