UNPKG

388 BTypeScriptView Raw
1/**
2 * @publicApi
3 */
4export declare class BaseRpcContext<T = unknown[]> {
5 protected readonly args: T;
6 constructor(args: T);
7 /**
8 * Returns the array of arguments being passed to the handler.
9 */
10 getArgs(): T;
11 /**
12 * Returns a particular argument by index.
13 * @param index index of argument to retrieve
14 */
15 getArgByIndex(index: number): any;
16}