1.3.4 • Published 6 months ago

@types/blocked v1.3.4

Weekly downloads
1,214
License
MIT
Repository
github
Last release
6 months ago

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.

1.3.4

6 months ago

1.3.3

7 months ago

1.3.2

8 months ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.0

6 years ago