@types/node-cleanup
TypeScript icon, indicating that this package has built-in type declarations

2.1.5 • Public • Published

Installation

npm install --save @types/node-cleanup

Summary

This package contains type definitions for node-cleanup (https://github.com/jtlapp/node-cleanup).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-cleanup.

index.d.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;
}

Additional Details

  • Last updated: Wed, 22 Nov 2023 00:24:48 GMT
  • Dependencies: none

Credits

These definitions were written by Agadar.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.5
    2,710
  • 2.1.4
    47
  • 2.1.3
    7
  • 2.1.2
    26,924
  • 2.1.1
    298
  • 2.1.0
    595

Package Sidebar

Install

npm i @types/node-cleanup

Weekly Downloads

30,581

Version

2.1.5

License

MIT

Unpacked Size

3.74 kB

Total Files

5

Last publish

Collaborators

  • types