@voiceflow/nestjs-timeout
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

NestJS Timeout

A NestJS interceptor that will error a request after a timeout is exceeded.

Installation

yarn add @voiceflow/nestjs-timeout

Usage

import { Controller } from '@nestjs/common';
import { TimeoutInterceptor } from '@voiceflow/nestjs-timeout';

@Controller()
// Timeout after 30 seconds
@UseInterceptors(new TimeoutInterceptor(30 * 1000))
export class MyController {
  /* ... */
}

Package Sidebar

Install

npm i @voiceflow/nestjs-timeout

Weekly Downloads

169

Version

1.3.0

License

ISC

Unpacked Size

6.47 kB

Total Files

11

Last publish

Collaborators

  • pmvrmc
  • matheuspoleza
  • amandasteinhauer
  • filipemerker
  • andrewlawrence
  • tylerhhan
  • effervescentia
  • josh_vf
  • voiceflow-gallagan
  • z4o4z
  • sssoflyyy
  • xavidop
  • vf-serviceaccount
  • zhilight
  • trs
  • viniciusdacal
  • ytolun
  • shelone.grantwatson
  • edison-vflow
  • sanasarjanjughazyan
  • ose-voiceflow
  • dandonovan78
  • gillyb
  • theprof
  • abuyak
  • matthewnaik
  • ninabondar
  • jbydeley