Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Runner<T, RO, RA>

Type parameters

Hierarchy

Implements

Index

Properties

Abstract defaultOptions

defaultOptions: RO

Methods

changeOptions

  • changeOptions(options: Partial<RO>): RO

Protected Abstract exec

  • exec(url: string, scraper: function, options: RO): Promise<T>
  • Parameters

    • url: string
    • scraper: function
        • (args: RA): Promise<T>
        • Parameters

          • args: RA

          Returns Promise<T>

    • options: RO

    Returns Promise<T>

getOptions

  • getOptions(options?: Partial<RO>): RO

run

  • run(url: string, scraper: function, options?: RO): Promise<T>
  • Parameters

    • url: string
    • scraper: function
        • (args: RA): Promise<T>
        • Parameters

          • args: RA

          Returns Promise<T>

    • Optional options: RO

    Returns Promise<T>

Static mergeOptions

  • mergeOptions<O>(o1: O, o2: Partial<O> | O | undefined): O
  • mergeOptions<O>(o1: O | Partial<O> | undefined, o2: O): O
  • mergeOptions<O>(o1: Partial<O> | undefined, o2: Partial<O>): Partial<O>
  • mergeOptions<O>(o1: Partial<O>, o2: Partial<O> | undefined): Partial<O>
  • mergeOptions<O>(o1: Partial<O> | undefined, o2: Partial<O> | undefined): Partial<O> | undefined

Generated using TypeDoc