mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
8 lines
214 B
TypeScript
8 lines
214 B
TypeScript
import { Throttle, ThrottleGroup } from 'stream-throttle';
|
|
|
|
const throttle = new Throttle({rate: 1});
|
|
const throttleGroup = new ThrottleGroup({rate: 1});
|
|
|
|
// $ExpectType Throttle
|
|
throttleGroup.throttle({rate: 1});
|