DefinitelyTyped/types/node-cleanup/index.d.ts
Jakub Jirutka c2426c074c node-cleanup: Allow handler returning void (#37743)
node-cleanup accepts even handlers that doesn't return anything.
2019-08-26 08:29:27 -07:00

18 lines
693 B
TypeScript

// Type definitions for node-cleanup 2.1
// Project: https://github.com/jtlapp/node-cleanup
// Definitions by: Agadar <https://github.com/agadar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Note that ES6 modules cannot directly export callable functions.
// This file should be imported using the CommonJS-style:
// import nodeCleanup = require('node-cleanup');
export = install;
declare function install(cleanupHandler?: ((exitCode: number | null, signal: string | null) => boolean | undefined | void),
stderrMessages?: { ctrl_C: string; uncaughtException: string }): void;
declare namespace install {
function uninstall(): void;
}