Skip to content

Commit 697eb87

Browse files
authored
Merge pull request #1 from BeAllAround/main
SenecaBatchProcessor Functional Spec
2 parents 862fa70 + d16813a commit 697eb87

6 files changed

+1024
-8
lines changed

dist/BatchProcessor.d.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
type WorkFlow = {
2+
entry?: any;
3+
send?: Array<any> | Object;
4+
};
5+
type Match = Record<string, WorkFlow>;
16
type BatchProcessorOptionsFull = {
27
debug: boolean;
8+
send: {
9+
mode: string;
10+
};
11+
where: Record<string, Match>;
12+
generate_id?: Function;
313
};
414
export type BatchProcessorOptions = Partial<BatchProcessorOptionsFull>;
515
declare function BatchProcessor(this: any, options: BatchProcessorOptionsFull): {
616
exports: {
7-
process: (seneca: any, ctx: any, out: any) => any;
17+
process: (workflowExec: any, ctx: any, out?: any) => Promise<any>;
18+
preprocess: (seneca: any, ctx: any, out?: any) => any;
819
};
920
};
1021
export default BatchProcessor;

dist/BatchProcessor.js

+264-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)