UNPKG

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