typed-patterns
Version:
Basic design patterns
7 lines • 464 B
TypeScript
import { AsyncProcessor, IChainedProcessor } from './interface';
/**
* Creates asynchronous processor based on chain-of-responsibility
* @param processors Chain of single-responsible processors
*/
export declare function buildAsyncProcessor<Context, Result extends any[], Exception extends Error>(processors: Iterable<AsyncProcessor<Context, Result, Exception>>): IChainedProcessor<Context, Result, Exception>;
//# sourceMappingURL=buid.async.processor.d.ts.map