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

1.0.4 • Public • Published

Installation

npm install --save @types/throttle

Summary

This package contains type definitions for throttle (https://github.com/TooTallNate/node-throttle).

Details

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

index.d.ts

/// <reference types="node" />
import * as stream from "stream";

export = Throttle;

declare class Throttle extends stream.Transform {
    constructor(options: number | Throttle.Options);
}

declare namespace Throttle {
    interface Options extends stream.TransformOptions {
        bps: number;
        chunkSize?: number | undefined;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/throttle

Weekly Downloads

604

Version

1.0.4

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • types