index.d.ts 349 B

12345
  1. declare function throat<TResult, TFn extends (...args: Array<any>) => Promise<TResult>>(size: number, fn: TFn): TFn;
  2. declare function throat<TResult, TFn extends (...args: Array<any>) => Promise<TResult>>(fn: TFn, size: number): TFn;
  3. declare function throat(size: number): <TResult>(fn: () => Promise<TResult>) => Promise<TResult>;
  4. export = throat;