0.1.4 • Published 7 months ago

@types/stream-throttle v0.1.4

Weekly downloads
5,340
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for stream-throttle 0.1
// Project: https://github.com/tjgq/node-stream-throttle
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Fri, 02 Jul 2021 22:33:00 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Daniel Byrne.

0.1.2

8 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.1

3 years ago

0.1.0

6 years ago