OnModuleDestroy

Interface defining method called just before Nest destroys the host module (app.close() method has been evaluated). Use to perform cleanup on resources (e.g., Database connections).


interface OnModuleDestroy {
  onModuleDestroy(): any
}

See also

Methods

onModuleDestroy()


onModuleDestroy(): any

Parameters

There are no parameters.

Returns

any