@types/node-cleanup
Version:
TypeScript definitions for node-cleanup
39 lines (28 loc) • 1.2 kB
Markdown
> `npm install --save @types/node-cleanup`
This package contains type definitions for node-cleanup (https://github.com/jtlapp/node-cleanup).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cleanup.
````ts
// 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;
interface StderrMessages {
ctrl_C?: string;
uncaughtException?: string;
}
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
type Handler = (exitCode: number | null, signal: string | null) => boolean | undefined | void;
declare function install(cleanupHandler?: Handler, stderrMessages?: StderrMessages): void;
declare namespace install {
function uninstall(): void;
}
````
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
* Dependencies: none
These definitions were written by [Agadar](https://github.com/agadar).