UNPKG

@kitstack/nest-powertools

Version:

A comprehensive collection of NestJS powertools, decorators, and utilities to supercharge your backend development

12 lines (11 loc) 427 B
import { type NestInterceptor, type ExecutionContext, type CallHandler } from '@nestjs/common'; import type { Observable } from 'rxjs'; export interface Response<T> { success: boolean; data: T; message?: string; timestamp: string; } export declare class TransformInterceptor<T> implements NestInterceptor<T, Response<T>> { intercept(context: ExecutionContext, next: CallHandler): Observable<Response<T>>; }