@dmgt/google-ad-manager-api
Version:
Typed Google Ad Manager API
22 lines (21 loc) • 513 B
TypeScript
import { PaginateOptions } from './paginate';
/**
* Iterate through results of possibly inifite, paginated queries.
*
* @see {@link PaginateOptions}
* @see {@link paginate}
* @example
* ```
* for await (const item of iterate({
* executeQuery: (limit, offset) =>
* query(
* client,
* 'getLineItemsByStatementAsync',
* { limit, offset }
* )
* })) {
* console.info(item)
* }
* ```
*/
export declare function iterate<T>(options: PaginateOptions<T>): AsyncGenerator<T>;