UNPKG

@mail-core/cli

Version:

Инструментарий для написания cli-скриптов

14 lines (13 loc) 394 B
/// <reference types="node" /> export declare type ProcessExitEvent = ({ type: 'exit'; code: number; } | { type: 'break' | 'kill'; signal: NodeJS.Signals; } | { type: 'uncaughtException'; reason: Error; }); export declare type ProcessExitHandler = (evt: ProcessExitEvent) => void; export declare function addProcessExitListener(handler: ProcessExitHandler): () => void;