mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import nodeCleanup = require('node-cleanup');
|
|
|
|
function cleanupHandler(exitCode: number | null, signal: string | null): boolean | undefined {
|
|
return true;
|
|
}
|
|
const stderrMessages = { ctrl_C: 'ctrl_c', uncaughtException: 'UncaughtException' };
|
|
|
|
nodeCleanup();
|
|
nodeCleanup(cleanupHandler);
|
|
nodeCleanup(cleanupHandler, undefined);
|
|
nodeCleanup(cleanupHandler, stderrMessages);
|
|
nodeCleanup(undefined, stderrMessages);
|
|
nodeCleanup.uninstall();
|