Type alias CrawlerAction<T>

CrawlerAction<T>: (({ page, targets, path, }: {
    page: Page;
    path: string[];
    targets: Set<string>;
}) => Promise<T>)

Type Parameters

  • T

Type declaration

    • ({ page, targets, path, }: {
          page: Page;
          path: string[];
          targets: Set<string>;
      }): Promise<T>
    • Parameters

      • { page, targets, path, }: {
            page: Page;
            path: string[];
            targets: Set<string>;
        }
        • page: Page

          The current page.

        • path: string[]

          The path that was taken to get to this page.

        • targets: Set<string>

          The bucket of targets that should be crawled in the next iteration.

      Returns Promise<T>

Generated using TypeDoc