• Type Parameters

    • Item

    • Response

    Parameters

    • props: {
          address: PaymentAddress;
          haveEnoughItems?: ((items: Item[]) => boolean);
          paginationOptions?: PaginationOptions;
          request: ((address: PaymentAddress, pagination: PaginationOptions) => Promise<Response[]>);
          responseTranslator?: ((address: PaymentAddress, response: Response[]) => Item[]);
      }
      • address: PaymentAddress
      • Optional haveEnoughItems?: ((items: Item[]) => boolean)
          • (items: Item[]): boolean
          • Returns

            true to indicate that current result set should be returned

            Parameters

            • items: Item[]

            Returns boolean

      • Optional paginationOptions?: PaginationOptions
      • request: ((address: PaymentAddress, pagination: PaginationOptions) => Promise<Response[]>)
          • (address: PaymentAddress, pagination: PaginationOptions): Promise<Response[]>
          • Parameters

            Returns Promise<Response[]>

      • Optional responseTranslator?: ((address: PaymentAddress, response: Response[]) => Item[])

    Returns Promise<Item[]>

Generated using TypeDoc