index.js.flow 354 B

12345678
  1. // @flow
  2. declare function throat<TResult, TFn: (...args: Array<any>) => Promise<TResult>>(size: number, fn: TFn): TFn;
  3. declare function throat<TResult, TFn: (...args: Array<any>) => Promise<TResult>>(fn: TFn, size: number): TFn;
  4. declare function throat(size: number): <TResult>(fn: () => Promise<TResult>) => Promise<TResult>;
  5. module.exports = throat;