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.
20 lines (14 loc) • 434 B
TypeScript
type NextFunction<V> = () => IteratorResult<V>;
export default class Iterator<V> implements IterableIterator<V> {
// Constructor
constructor(next: NextFunction<V>);
// Members
done: boolean;
// Well-known methods
next(): IteratorResult<V>;
[ ](): IterableIterator<V>;
// Static methods
static of<T>(...args: T[]): Iterator<T>;
static empty<T>(): Iterator<T>;
static is(value: any): boolean;
}