1 | # Installation
|
2 | > `npm install --save @types/signal-exit`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for signal-exit (https://github.com/tapjs/signal-exit).
|
6 |
|
7 | # Details
|
8 | Files 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
|
11 | // Type definitions for signal-exit 3.0
|
12 | // Project: https://github.com/tapjs/signal-exit
|
13 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 | // TypeScript Version: 2.1
|
16 |
|
17 | export = signalExit;
|
18 |
|
19 | declare function signalExit(
|
20 | callback: (code: number | null, signal: signalExit.Signal | null) => void,
|
21 | options?: signalExit.Options
|
22 | ): () => void;
|
23 |
|
24 | declare namespace signalExit {
|
25 | function load(): void;
|
26 | function unload(): void;
|
27 | function signals(): Signal[];
|
28 |
|
29 | type Signal = 'SIGABRT' | 'SIGALRM' | 'SIGHUP' | 'SIGINT' | 'SIGTERM' | string;
|
30 |
|
31 | interface Options {
|
32 | alwaysLast?: boolean | undefined;
|
33 | }
|
34 | }
|
35 |
|
36 | ````
|
37 |
|
38 | ### Additional Details
|
39 | * Last updated: Tue, 06 Jul 2021 16:34:46 GMT
|
40 | * Dependencies: none
|
41 | * Global values: none
|
42 |
|
43 | # Credits
|
44 | These definitions were written by [BendingBender](https://github.com/BendingBender).
|
45 |
|
\ | No newline at end of file |