UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

27 lines (26 loc) 751 B
import { Client } from "./client"; /** * @public * * Expected type definition of a paginator. */ export type Paginator<T> = AsyncGenerator<T, undefined, 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; }