UNPKG

website-validator

Version:
12 lines (11 loc) 415 B
import { getLinks, validateFile, checkLink } from "./worker.js"; export type Pool = { validateFile: typeof validateFile; getLinks: typeof getLinks; checkLink: typeof checkLink; }; export declare const withPool: (concurrency?: number) => <T>(fn: (pool?: { validateFile: typeof validateFile; getLinks: typeof getLinks; checkLink: typeof checkLink; } | undefined) => T) => Promise<Awaited<T>>;