diff options
Diffstat (limited to 'node_modules/throat/index.js.flow')
-rw-r--r-- | node_modules/throat/index.js.flow | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/throat/index.js.flow b/node_modules/throat/index.js.flow new file mode 100644 index 0000000..4036f83 --- /dev/null +++ b/node_modules/throat/index.js.flow @@ -0,0 +1,7 @@ +// @flow + +declare function throat<TResult, TFn: (...args: Array<any>) => Promise<TResult>>(size: number, fn: TFn): TFn; +declare function throat<TResult, TFn: (...args: Array<any>) => Promise<TResult>>(fn: TFn, size: number): TFn; +declare function throat(size: number): <TResult>(fn: () => Promise<TResult>) => Promise<TResult>; + +module.exports = throat; |