UNPKG

402 BTypeScriptView Raw
1import pLimit from 'p-limit';
2/**
3 * Converts a string to 32bit integer
4 */
5export declare function stringToHash(str: string): number;
6export declare type StackNext = () => void;
7export declare type StackFn<T> = (input: T, next: StackNext) => void;
8export declare function useStack<T>(...fns: Array<StackFn<T>>): (input: T) => void;
9export declare function useLimit(concurrency: number): pLimit.Limit;