UNPKG

@alline/core

Version:

Core for Alline.

10 lines (9 loc) 298 B
import { AsyncSeriesWaterfallHook } from "tapable"; export interface BaseScraperHook<T, U> { before: AsyncSeriesWaterfallHook<U>; after: AsyncSeriesWaterfallHook<[T, U]>; } export interface BaseScraper<T, U> { scrapHooks: BaseScraperHook<T, U>; scrap(rlt: T, ctx: U): Promise<T>; }