nestjs-http-wrapper
Version:
A wrapper for NestJS HttpService to standardize requests and error handling.
7 lines (6 loc) • 376 B
TypeScript
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { Observable } from 'rxjs';
import { GenericResponse } from '../interfaces/response.interface';
export declare class ResponseInterceptor<T> implements NestInterceptor<T, GenericResponse<T>> {
intercept(_context: ExecutionContext, next: CallHandler): Observable<GenericResponse<T>>;
}