@dazejs/framework
Version:
Daze.js - A powerful web framework for Node.js
12 lines (11 loc) • 327 B
TypeScript
type TStage = (...args: any[]) => any;
type TProcesser = (...args: any[]) => any;
export declare class Pipeline {
stages: TStage[];
payload: any;
constructor(...stages: TStage[]);
pipe(...stages: TStage[]): this;
send(...payload: any[]): this;
process(processor: TProcesser): Promise<any>;
}
export {};