UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

27 lines (26 loc) 743 B
import { Client } from "./client"; /** * @public * * Expected type definition of a paginator. */ export type Paginator<T> = AsyncGenerator<T, T, unknown>; /** * @public * * Expected paginator configuration passed to an operation. Services will extend * this interface definition and may type client further. */ export interface PaginationConfiguration { client: Client<any, any, any>; pageSize?: number; startingToken?: any; /** * For some APIs, such as CloudWatchLogs events, the next page token will always * be present. * * When true, this config field will have the paginator stop when the token doesn't change * instead of when it is not present. */ stopOnSameToken?: boolean; }