UNPKG

@takentrade/takentrade-libs

Version:
15 lines (14 loc) 489 B
import { ExecutionContext } from '@nestjs/common'; import { Observable } from 'rxjs'; import { IAppResponse } from './response.interface'; export interface IResponseInterceptor<T> { intercept(context: ExecutionContext, next: any): Observable<IAppResponse<T>>; } export interface IInterceptorConfig { includePath?: boolean; includeRequestId?: boolean; includeVersion?: boolean; includeExecutionTime?: boolean; defaultSuccessMessage?: string; version?: string; }