UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

10 lines (9 loc) • 383 B
import { Module } from '../injector/module.js'; /** * Calls the `beforeApplicationShutdown` function on the module and its children * (providers / controllers). * * @param moduleRef The module which will be initialized * @param signal The signal which caused the shutdown */ export declare function callBeforeAppShutdownHook(moduleRef: Module, signal?: string): Promise<void>;