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

0.1.4 • Public • Published

Installation

npm install --save @types/stream-throttle

Summary

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

Details

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

index.d.ts

/// <reference types = "node" />

import { Transform } from "stream";

export interface ThrottleOptions {
    readonly rate: number;
    readonly chunksize?: number | undefined;
}

export class Throttle extends Transform {
    constructor(options: ThrottleOptions);
}

export class ThrottleGroup {
    constructor(options: ThrottleOptions);
    throttle(options: ThrottleOptions): Throttle;
}

Additional Details

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

Credits

These definitions were written by Daniel Byrne.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/stream-throttle

Weekly Downloads

6,061

Version

0.1.4

License

MIT

Unpacked Size

3.46 kB

Total Files

5

Last publish

Collaborators

  • types