New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/blocked

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/blocked

TypeScript definitions for blocked

ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.3.5
Version published
Weekly downloads
35K
-8.31%
Maintainers
1
Weekly downloads
 
Created
Source

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

/// <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.Timeout;

declare namespace Blocked {
    interface Options {
        threshold?: number | undefined; // in milliseconds
        interval?: number | undefined; // in milliseconds
    }
}

Additional Details

  • Last updated: Fri, 14 Nov 2025 18:02:08 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Jonas Lochmann.

FAQs

Package last updated on 14 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts