UNPKG

@dmgt/google-ad-manager-api

Version:
22 lines (21 loc) 513 B
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>;