UNPKG

nestjs-aborter

Version:

Automatic request cancellation and timeout handling for NestJS applications

11 lines (10 loc) 379 B
import { CanActivate, ExecutionContext } from '@nestjs/common'; /** * Guard that prevents route execution if the request has already been aborted. * * Use this to avoid unnecessary processing when the client has disconnected * or the request has timed out. */ export declare class AborterGuard implements CanActivate { canActivate(context: ExecutionContext): boolean; }