feat: Workflow engine modules (#6128)

This commit is contained in:
Carlos R. L. Rodrigues
2024-01-23 10:08:08 -03:00
committed by GitHub
parent d85fee42ee
commit 302323916b
119 changed files with 5339 additions and 263 deletions
@@ -26,3 +26,16 @@ workflow()
.then((res) => {
console.log(res.result) // result: { step2: { test: "test", test2: "step1" } }
})
/*type type0 = typeof workflow extends ReturnWorkflow<infer T, infer R, infer X>
? T
: never
function run<
TWorkflow extends ReturnWorkflow<any, any, any>,
TData = TWorkflow extends ReturnWorkflow<infer T, infer R, infer X>
? T
: never
>(name: string, options: FlowRunOptions<TData>) {}
const test = run<typeof workflow>("workflow", { input: "string" })*/