UNPKG

542 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.BaseRpcContext = void 0;
4class BaseRpcContext {
5 constructor(args) {
6 this.args = args;
7 }
8 /**
9 * Returns the array of arguments being passed to the handler.
10 */
11 getArgs() {
12 return this.args;
13 }
14 /**
15 * Returns a particular argument by index.
16 * @param index index of argument to retrieve
17 */
18 getArgByIndex(index) {
19 return this.args[index];
20 }
21}
22exports.BaseRpcContext = BaseRpcContext;