@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
11 lines (10 loc) • 626 B
TypeScript
import type { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
import type { Observable } from "rxjs";
/**
* Global interceptor that adds correlation IDs and timestamps to all error responses.
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/api-reference/interceptors | API Reference - Interceptors}
* @see {@link https://elsikora.com/docs/nestjs-crud-automator/guides/error-handling | Guides - Error Handling}
*/
export declare class CorrelationIDResponseBodyInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler): Observable<unknown>;
}