UNPKG

@nestjs/microservices

Version:

Nest - modern, fast, powerful node.js web framework (@microservices)

23 lines (22 loc) 430 B
/** * @publicApi */ export class BaseRpcContext { args; constructor(args) { this.args = args; } /** * Returns the array of arguments being passed to the handler. */ getArgs() { return this.args; } /** * Returns a particular argument by index. * @param index index of argument to retrieve */ getArgByIndex(index) { return this.args[index]; } }