@types/signal-exit
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    Installation

    npm install --save @types/signal-exit

    Summary

    This package contains type definitions for signal-exit (https://github.com/tapjs/signal-exit).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signal-exit.

    index.d.ts

    // Type definitions for signal-exit 3.0
    // Project: https://github.com/tapjs/signal-exit
    // Definitions by: BendingBender <https://github.com/BendingBender>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.1
    
    export = signalExit;
    
    declare function signalExit(
        callback: (code: number | null, signal: signalExit.Signal | null) => void,
        options?: signalExit.Options
    ): () => void;
    
    declare namespace signalExit {
        function load(): void;
        function unload(): void;
        function signals(): Signal[];
    
        type Signal = 'SIGABRT' | 'SIGALRM' | 'SIGHUP' | 'SIGINT' | 'SIGTERM' | string;
    
        interface Options {
            alwaysLast?: boolean | undefined;
        }
    }

    Additional Details

    • Last updated: Tue, 06 Jul 2021 16:34:46 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by BendingBender.

    Keywords

    none

    Install

    npm i @types/signal-exit

    DownloadsWeekly Downloads

    68,430

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    4.01 kB

    Total Files

    4

    Last publish

    Collaborators

    • types