@types/throttle
Version:
TypeScript definitions for throttle
35 lines (26 loc) • 1 kB
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/throttle/index.d.ts)
````ts
/// <reference types="node" />
import stream = require("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: Fri, 24 Oct 2025 04:02:41 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).