UNPKG

1.07 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/signal-exit`
3
4# Summary
5This package contains type definitions for signal-exit (https://github.com/tapjs/signal-exit).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signal-exit.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signal-exit/index.d.ts)
10````ts
11export = signalExit;
12
13declare function signalExit(
14 callback: (code: number | null, signal: signalExit.Signal | null) => void,
15 options?: signalExit.Options,
16): () => void;
17
18declare namespace signalExit {
19 function load(): void;
20 function unload(): void;
21 function signals(): Signal[];
22
23 type Signal = "SIGABRT" | "SIGALRM" | "SIGHUP" | "SIGINT" | "SIGTERM" | string;
24
25 interface Options {
26 alwaysLast?: boolean | undefined;
27 }
28}
29
30````
31
32### Additional Details
33 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
34 * Dependencies: none
35
36# Credits
37These definitions were written by [BendingBender](https://github.com/BendingBender).
38
\No newline at end of file