UNPKG

@ogma/nestjs-module

Version:

A NestJS module for the Ogma logger

20 lines (19 loc) 877 B
import { ArgumentsHost, ExecutionContext } from '@nestjs/common'; import { AbstractInterceptorService } from './abstract-interceptor.service'; export declare abstract class RpcInterceptorService extends AbstractInterceptorService { getCallPoint(context: ExecutionContext): any; /** * A helper method to get the appropriate data object for the adapter * @param context execution context from Nest * @returns The data object for the RPC adapter */ getData<T>(context: ArgumentsHost): T; /** * A helper method to get the RPC client from the execution context * @param context execution context from Nest * @returns The client object for the RPC adapter */ getClient<T = unknown>(context: ArgumentsHost): T; setRequestId(context: ArgumentsHost, requestId: any): void; getRequestId(context: ArgumentsHost): any; }