package
Core types for paging async iterable iterators
npm install @azure/core-pagingGitHub-flavored package documentation.
Across all versions, last 30 days.
79,456,299 in 30 days
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
149.1 kB
Includes dependencies.
Latest published Jul 13, 2026
latest
This library provides core types for paging async iterable iterators.
This package is primarily used in generated code and not meant to be consumed directly by end users.
You can find an explanation of how this repository's code works by going to our architecture overview.
Example of building with the types:
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
function listSecrets(
options: ListSecretsOptions = {},
): PagedAsyncIterableIterator<SecretAttributes> {
const iter = listSecretsAll(options);
return {
async next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: (settings: PageSettings = {}) => listSecretsPage(settings, options),
};
}
for
And using the types:
for await (let page of client.listSecrets().byPage({ maxPageSize: 2 })) {
for (const secret of page) {
console.log("secret: ", secret);
}
}Try out this package in your application when dealing with async iterable iterators and provide feedback!
Log an issue at https://github.com/Azure/azure-sdk-for-js/issues
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.
microsoft1es
npmjs@microsoft.com