UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

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; }