UNPKG

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