website-validator
Version:
Comprehensive website validation
12 lines (11 loc) • 415 B
TypeScript
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>>;