@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 {
  /* ... */
}

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @voiceflow/nestjs-timeout

    Weekly Downloads

    208

    Version

    1.3.0

    License

    ISC

    Unpacked Size

    6.47 kB

    Total Files

    11

    Last publish

    Collaborators

    • cheatcod
    • ebra-vf
    • saargue
    • ganeshasapu
    • gillyb
    • ose-voiceflow
    • theprof
    • bhuvana.adur.kannan
    • abuyak
    • e_vandenberg
    • ninabondar
    • yoyotruly
    • matthewnaik
    • edison-vflow
    • shelone.grantwatson
    • zhilight
    • amandasteinhauer
    • pmvrmc
    • filipemerker
    • viniciusdacal
    • trs
    • matheuspoleza
    • denyslinkov
    • andrewlawrence
    • tylerhhan
    • effervescentia
    • josh_vf
    • voiceflow-gallagan
    • z4o4z
    • xavidop
    • vf-serviceaccount