source-scraper-core
Version:
Core files for the SourceScraper-Project
12 lines (11 loc) • 495 B
TypeScript
import { Scraper } from './Scraper';
export declare class ScraperArray<T> extends Array<Scraper<T>> {
constructor(length: number);
constructor(...elements: Array<Scraper<T>>);
readonly domains: string[];
getAllApplicable(url: string): Array<Scraper<T>>;
getFirstApplicable(url: string): Scraper<T> | undefined;
allApplicable(url: string): boolean;
getByName(name: string): Scraper<T> | undefined;
getByDomain(domain: string): Scraper<T> | undefined;
}