mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
693 B
TypeScript
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;
|
|
}
|