UNPKG

461 BTypeScriptView Raw
1export = signalExit;
2
3declare function signalExit(
4 callback: (code: number | null, signal: signalExit.Signal | null) => void,
5 options?: signalExit.Options,
6): () => void;
7
8declare namespace signalExit {
9 function load(): void;
10 function unload(): void;
11 function signals(): Signal[];
12
13 type Signal = "SIGABRT" | "SIGALRM" | "SIGHUP" | "SIGINT" | "SIGTERM" | string;
14
15 interface Options {
16 alwaysLast?: boolean | undefined;
17 }
18}