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.
17 lines (14 loc) • 346 B
TypeScript
/**
* Mnemonist Generic Types
* ========================
*
* Collection of types used throughout the library.
*/
export interface IArrayLike {
length: number;
slice(from: number, to?: number): IArrayLike;
}
export type ArrayLike = IArrayLike | ArrayBuffer;
export interface IArrayLikeConstructor {
new(...args: any[]): ArrayLike;
}