mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-20 15:52:45 +00:00
19 lines
396 B
TypeScript
19 lines
396 B
TypeScript
import ON_DEATH = require("death");
|
|
|
|
const unsub: () => void = ON_DEATH(
|
|
(value: "SIGINT" | "SIGTERM" | "SIGQUIT") => {}
|
|
);
|
|
|
|
const otherUnsub: () => void = ON_DEATH({
|
|
debug: true,
|
|
uncaughtException: true,
|
|
SIGINT: true,
|
|
SIGTERM: true,
|
|
SIGQUIT: true,
|
|
SIGHUP: true
|
|
})(
|
|
(
|
|
value: "uncaughtException" | "SIGINT" | "SIGTERM" | "SIGQUIT" | "SIGHUP"
|
|
) => {}
|
|
);
|