UNPKG

557 BTypeScriptView Raw
1import { BaseRpcContext } from './base-rpc.context';
2declare type RmqContextArgs = [Record<string, any>, any, string];
3export declare class RmqContext extends BaseRpcContext<RmqContextArgs> {
4 constructor(args: RmqContextArgs);
5 /**
6 * Returns the original message (with properties, fields, and content).
7 */
8 getMessage(): Record<string, any>;
9 /**
10 * Returns the reference to the original RMQ channel.
11 */
12 getChannelRef(): any;
13 /**
14 * Returns the name of the pattern.
15 */
16 getPattern(): string;
17}
18export {};