npm.io
0.1.4 • Published 2 years ago

@types/stream-throttle

Licence
MIT
Version
0.1.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Daniel Byrne.