UNPKG

@harvestapi/scraper

Version:

HarvestAPI provides LinkedIn data scraping tools for real-time, high-performance scraping at a low cost. API allows to search for Linkedin `jobs`, `companies`, `profiles`, and `posts` using a wide range of filters.

9 lines (8 loc) 805 B
export type AsyncFunction<TArgs extends any[] = any[], TRes = any> = (...args: TArgs) => Promise<TRes>; type CreateConcurrentQueuesOptions = { id?: string; }; export declare function createConcurrentQueues<TArgs extends any[] = any[], TRes = any>(concurrency: number, fn: AsyncFunction<TArgs, TRes>, opts?: CreateConcurrentQueuesOptions): AsyncFunction<TArgs, TRes>; export declare const concurrentQueues: <T, R>(concurrency: number, items: T[], worker: (item: T, itemIndex: number, queueIndex: number) => Promise<R>) => Promise<(R | null)[]>; export declare function createConcurrentQueuesPerKey<TArgs extends any[], TRes = any>(keyGetter: (...args: TArgs) => string, queuesNumber: number, fn: AsyncFunction<TArgs, TRes>, opts?: CreateConcurrentQueuesOptions): AsyncFunction<TArgs, TRes>; export {};