UNPKG

@zougui/furaffinity

Version:

19 lines 604 B
import type { ScrapeOptionElement } from 'scrape-it'; type Unarray<T> = T extends Array<infer U> ? U : T; export interface TypedScrapeOptionList<T> { listItem: string; data?: ScrapeOptions<T>; convert?: (value: unknown) => unknown; how?: string | ((element: cheerio.Selector) => unknown); } export type ScrapeOptions<T> = { [P in keyof T]: (string | TypedScrapeOptionList<Unarray<T[P]>> | ScrapeOptionElement); } | { value?: any; }; export interface DualScrapeOptions<T> { classic: ScrapeOptions<T>; beta: ScrapeOptions<T>; } export {}; //# sourceMappingURL=types.d.ts.map