UNPKG

@takentrade/takentrade-libs

Version:
16 lines (15 loc) 521 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 { includeTimestamp?: boolean; includePath?: boolean; includeRequestId?: boolean; includeVersion?: boolean; includeExecutionTime?: boolean; defaultSuccessMessage?: string; version?: string; }