made-collections
Version:
This package includes:
12 lines (11 loc) • 319 B
TypeScript
import { IChain } from "./IChain";
/**
* Defines a chain for instances of objects.
*/
export declare class Chain<T> implements IChain<T> {
private _instances;
constructor(...instances: T[]);
count(): number;
with(...instances: T[]): IChain<T>;
invoke(func: (instance: T) => Promise<any>): void;
}