UNPKG

han-prev-core

Version:

Core framework for Han - A powerful Node.js framework inspired by NestJS

9 lines (8 loc) 457 B
import { BaseInterceptor, InterceptorContext, InterceptorResponse } from "../interfaces/interceptor.interface"; export declare class PerformanceInterceptor extends BaseInterceptor { private readonly slowThreshold; constructor(slowThreshold?: number); beforeHandle(context: InterceptorContext): void; afterHandle(context: InterceptorContext, response: InterceptorResponse): void; onError(context: InterceptorContext, error: any): void; }