microlinkhq / async-ratelimiter

Rate limit made simple, easy, async.
MIT License
318 stars 23 forks source link

No decrease parameter at interface GetOptions (Typescript) #17

Closed kornel-kedzierski closed 5 years ago

kornel-kedzierski commented 5 years ago

index.d.ts

 interface GetOptions {
   id?: string;
   max?: number;
   duration?: number;
   // decrease?: boolean; //// MISSING ////
}

src/index.js

 async get ({
    id = this.id,
    max = this.max,
    duration = this.duration,
    decrease = true
  } = {}) {
kornel-kedzierski commented 5 years ago

https://github.com/microlinkhq/async-ratelimiter/pull/18

kornel-kedzierski commented 5 years ago

fixed in 1.2.2