Nepotistic Pontifex Maximus

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

    1.3.1 • Public • Published

    Installation

    npm install --save @types/blocked

    Summary

    This package contains type definitions for blocked (https://github.com/visionmedia/node-blocked#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/blocked.

    index.d.ts

    // Type definitions for blocked 1.3
    // Project: https://github.com/visionmedia/node-blocked#readme
    // Definitions by: Jonas Lochmann <https://github.com/l-jonas>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    /*~ Note that ES6 modules cannot directly export callable functions.
     *~ This file should be imported using the CommonJS-style:
     *~   import x = require('someLibrary');
     *~
     *~ Refer to the documentation to understand common
     *~ workarounds for this limitation of ES6 modules.
     */
    
    export = Blocked;
    
    declare function Blocked(callback: (ms: number) => void, options?: Blocked.Options): NodeJS.Timer;
    
    declare namespace Blocked {
      interface Options {
        threshold?: number | undefined;  // in milliseconds
        interval?: number | undefined; // in milliseconds
      }
    }

    Additional Details

    • Last updated: Wed, 07 Jul 2021 21:44:59 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by Jonas Lochmann.

    Keywords

    none

    Install

    npm i @types/blocked

    DownloadsWeekly Downloads

    8,006

    Version

    1.3.1

    License

    MIT

    Unpacked Size

    4.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • types