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.